diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 00:08:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 00:08:05 +0300 |
commit | 680d18802596089dc407b7011bcf682d24846aec (patch) | |
tree | 09e1beea15fe9ba9d1a757c31b7836e5f7e9fa89 /spec/rubocop | |
parent | d84f18d66c1fc46f244b0f4dec8bf65b90d9882a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/rubocop')
-rw-r--r-- | spec/rubocop/cop/rspec/env_assignment_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/rubocop/cop/rspec/env_assignment_spec.rb b/spec/rubocop/cop/rspec/env_assignment_spec.rb index 2a2bd1434d6..1c7cfb5c827 100644 --- a/spec/rubocop/cop/rspec/env_assignment_spec.rb +++ b/spec/rubocop/cop/rspec/env_assignment_spec.rb @@ -10,8 +10,8 @@ require_relative '../../../../rubocop/cop/rspec/env_assignment' describe RuboCop::Cop::RSpec::EnvAssignment do include CopHelper - OFFENSE_CALL_SINGLE_QUOTES_KEY = %(ENV['FOO'] = 'bar').freeze - OFFENSE_CALL_DOUBLE_QUOTES_KEY = %(ENV["FOO"] = 'bar').freeze + offense_call_single_quotes_key = %(ENV['FOO'] = 'bar').freeze + offense_call_double_quotes_key = %(ENV["FOO"] = 'bar').freeze let(:source_file) { 'spec/foo_spec.rb' } @@ -36,12 +36,12 @@ describe RuboCop::Cop::RSpec::EnvAssignment do end context 'with a key using single quotes' do - it_behaves_like 'an offensive ENV#[]= call', OFFENSE_CALL_SINGLE_QUOTES_KEY - it_behaves_like 'an autocorrected ENV#[]= call', OFFENSE_CALL_SINGLE_QUOTES_KEY, %(stub_env('FOO', 'bar')) + it_behaves_like 'an offensive ENV#[]= call', offense_call_single_quotes_key + it_behaves_like 'an autocorrected ENV#[]= call', offense_call_single_quotes_key, %(stub_env('FOO', 'bar')) end context 'with a key using double quotes' do - it_behaves_like 'an offensive ENV#[]= call', OFFENSE_CALL_DOUBLE_QUOTES_KEY - it_behaves_like 'an autocorrected ENV#[]= call', OFFENSE_CALL_DOUBLE_QUOTES_KEY, %(stub_env("FOO", 'bar')) + it_behaves_like 'an offensive ENV#[]= call', offense_call_double_quotes_key + it_behaves_like 'an autocorrected ENV#[]= call', offense_call_double_quotes_key, %(stub_env("FOO", 'bar')) end end |