diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-08-11 01:31:42 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-08-11 02:29:42 +0300 |
commit | c8b802471bcb6ea9ea7af3c7a139598a1f945230 (patch) | |
tree | fb3fe5c094d8a831ede19d4ff2f1471914744907 /spec/support/redis | |
parent | 4ef10795ce5e24dc0f905daeb7236fe707a8c195 (diff) |
Enable the RSpec/HookArgument cop and auto-correct offenses
Diffstat (limited to 'spec/support/redis')
-rw-r--r-- | spec/support/redis/redis_shared_examples.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/redis/redis_shared_examples.rb b/spec/support/redis/redis_shared_examples.rb index f9552e41894..8676f895a83 100644 --- a/spec/support/redis/redis_shared_examples.rb +++ b/spec/support/redis/redis_shared_examples.rb @@ -3,12 +3,12 @@ RSpec.shared_examples "redis_shared_examples" do let(:test_redis_url) { "redis://redishost:#{redis_port}"} - before(:each) do + before do stub_env(environment_config_file_name, Rails.root.join(config_file_name)) clear_raw_config end - after(:each) do + after do clear_raw_config end |