Merge remote-tracking branch 'parent/main' into upstream-20240117
This commit is contained in:
commit
5d79bd078c
150 changed files with 2982 additions and 1485 deletions
|
@ -68,6 +68,7 @@ RSpec.describe InstancePresenter do
|
|||
context 'with the GITHUB_REPOSITORY env variable set' do
|
||||
around do |example|
|
||||
ClimateControl.modify GITHUB_REPOSITORY: 'other/repo' do
|
||||
reload_configuration
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
@ -80,6 +81,7 @@ RSpec.describe InstancePresenter do
|
|||
context 'without the GITHUB_REPOSITORY env variable set' do
|
||||
around do |example|
|
||||
ClimateControl.modify GITHUB_REPOSITORY: nil do
|
||||
reload_configuration
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
@ -88,6 +90,10 @@ RSpec.describe InstancePresenter do
|
|||
expect(instance_presenter.source_url).to eq('https://github.com/kmycode/mastodon')
|
||||
end
|
||||
end
|
||||
|
||||
def reload_configuration
|
||||
Rails.configuration.x.mastodon = Rails.application.config_for(:mastodon)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#thumbnail' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue