diff options
Diffstat (limited to 'spec/rubocop/cop/rspec/env_mocking_spec.rb')
-rw-r--r-- | spec/rubocop/cop/rspec/env_mocking_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/rubocop/cop/rspec/env_mocking_spec.rb b/spec/rubocop/cop/rspec/env_mocking_spec.rb index 189fccf483a..fec2000c88b 100644 --- a/spec/rubocop/cop/rspec/env_mocking_spec.rb +++ b/spec/rubocop/cop/rspec/env_mocking_spec.rb @@ -34,23 +34,23 @@ RSpec.describe RuboCop::Cop::RSpec::EnvMocking, feature_category: :tooling do context 'with mocking bracket calls ' do it_behaves_like 'cop offense mocking the ENV constant correctable with stub_env', - offense_call_brackets_string_quotes, %(stub_env('FOO', 'bar')) + offense_call_brackets_string_quotes, %(stub_env('FOO', 'bar')) it_behaves_like 'cop offense mocking the ENV constant correctable with stub_env', - offense_call_brackets_variables, %(stub_env(key, value)) + offense_call_brackets_variables, %(stub_env(key, value)) end context 'with mocking fetch calls' do it_behaves_like 'cop offense mocking the ENV constant correctable with stub_env', - offense_call_fetch_string_quotes, %(stub_env('FOO', 'bar')) + offense_call_fetch_string_quotes, %(stub_env('FOO', 'bar')) it_behaves_like 'cop offense mocking the ENV constant correctable with stub_env', - offense_call_fetch_variables, %(stub_env(key, value)) + offense_call_fetch_variables, %(stub_env(key, value)) end context 'with other special cases and variations' do it_behaves_like 'cop offense mocking the ENV constant correctable with stub_env', - offense_call_root_env_variables, %(stub_env(key, value)) + offense_call_root_env_variables, %(stub_env(key, value)) it_behaves_like 'cop offense mocking the ENV constant correctable with stub_env', - offense_call_key_value_method_calls, %(stub_env(fetch_key(object), fetch_value(object))) + offense_call_key_value_method_calls, %(stub_env(fetch_key(object), fetch_value(object))) end context 'with acceptable cases' do |