Skip to content

Commit

Permalink
chore: Eliminate deprecation warning in "app_config_controller_spec.r…
Browse files Browse the repository at this point in the history
…b" (#4258)

Fix the warning:

Using `should` from rspec-expectations' old `:should` syntax without
explicitly enabling the syntax is deprecated. Use the new `:expect` syntax
or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead.
  • Loading branch information
jordan-brough committed Mar 24, 2022
1 parent c2647a1 commit 0cf970d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/super_admin/app_config_controller_spec.rb
Expand Up @@ -37,7 +37,7 @@
post '/super_admin/app_config', params: { app_config: { TESTKEY: 'TESTVALUE' } }

expect(response.status).to eq(302)
expect(response).should redirect_to(super_admin_app_config_path)
expect(response).to redirect_to(super_admin_app_config_path)

config = GlobalConfig.get('TESTKEY')
expect(config['TESTKEY']).to eq('TESTVALUE')
Expand Down

0 comments on commit 0cf970d

Please sign in to comment.