Remove rails-controller-testing
gem (#33955)
This commit is contained in:
parent
68e5f0c452
commit
db97197685
3 changed files with 6 additions and 11 deletions
3
Gemfile
3
Gemfile
|
@ -145,9 +145,6 @@ group :test do
|
||||||
# Used to mock environment variables
|
# Used to mock environment variables
|
||||||
gem 'climate_control'
|
gem 'climate_control'
|
||||||
|
|
||||||
# Add back helpers functions removed in Rails 5.1
|
|
||||||
gem 'rails-controller-testing', '~> 1.0'
|
|
||||||
|
|
||||||
# Validate schemas in specs
|
# Validate schemas in specs
|
||||||
gem 'json-schema', '~> 5.0'
|
gem 'json-schema', '~> 5.0'
|
||||||
|
|
||||||
|
|
|
@ -641,10 +641,6 @@ GEM
|
||||||
activesupport (= 8.0.1)
|
activesupport (= 8.0.1)
|
||||||
bundler (>= 1.15.0)
|
bundler (>= 1.15.0)
|
||||||
railties (= 8.0.1)
|
railties (= 8.0.1)
|
||||||
rails-controller-testing (1.0.5)
|
|
||||||
actionpack (>= 5.0.1.rc1)
|
|
||||||
actionview (>= 5.0.1.rc1)
|
|
||||||
activesupport (>= 5.0.1.rc1)
|
|
||||||
rails-dom-testing (2.2.0)
|
rails-dom-testing (2.2.0)
|
||||||
activesupport (>= 5.0.0)
|
activesupport (>= 5.0.0)
|
||||||
minitest
|
minitest
|
||||||
|
@ -1009,7 +1005,6 @@ DEPENDENCIES
|
||||||
rack-cors (~> 2.0)
|
rack-cors (~> 2.0)
|
||||||
rack-test (~> 2.1)
|
rack-test (~> 2.1)
|
||||||
rails (~> 8.0)
|
rails (~> 8.0)
|
||||||
rails-controller-testing (~> 1.0)
|
|
||||||
rails-i18n (~> 8.0)
|
rails-i18n (~> 8.0)
|
||||||
rdf-normalize (~> 0.5)
|
rdf-normalize (~> 0.5)
|
||||||
redcarpet (~> 3.6)
|
redcarpet (~> 3.6)
|
||||||
|
|
|
@ -69,7 +69,8 @@ RSpec.describe Admin::DomainBlocksController do
|
||||||
|
|
||||||
expect(DomainBlockWorker).to_not have_received(:perform_async)
|
expect(DomainBlockWorker).to_not have_received(:perform_async)
|
||||||
|
|
||||||
expect(response).to render_template :new
|
expect(response.parsed_body.title)
|
||||||
|
.to match(I18n.t('admin.domain_blocks.new.title'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -84,7 +85,8 @@ RSpec.describe Admin::DomainBlocksController do
|
||||||
|
|
||||||
expect(DomainBlockWorker).to_not have_received(:perform_async)
|
expect(DomainBlockWorker).to_not have_received(:perform_async)
|
||||||
|
|
||||||
expect(response).to render_template :confirm_suspension
|
expect(response.parsed_body.title)
|
||||||
|
.to match(I18n.t('admin.domain_blocks.confirm_suspension.title', domain: 'example.com'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -119,7 +121,8 @@ RSpec.describe Admin::DomainBlocksController do
|
||||||
|
|
||||||
expect(DomainBlockWorker).to_not have_received(:perform_async)
|
expect(DomainBlockWorker).to_not have_received(:perform_async)
|
||||||
|
|
||||||
expect(response).to render_template :confirm_suspension
|
expect(response.parsed_body.title)
|
||||||
|
.to match(I18n.t('admin.domain_blocks.confirm_suspension.title', domain: 'example.com'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue