diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-06-21 18:49:15 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-06-21 18:49:15 +0300 |
commit | 056b47790af776e2ea98813144ca8255092ee008 (patch) | |
tree | 665d46efd75baafc6d43d1b412eeaea4bbe2032e /spec/support/redis | |
parent | e446e8712cd690981b48bc54ae1c20b7f4d3f99e (diff) |
Bring changes from EE
Diffstat (limited to 'spec/support/redis')
-rw-r--r-- | spec/support/redis/redis_shared_examples.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/support/redis/redis_shared_examples.rb b/spec/support/redis/redis_shared_examples.rb index 8676f895a83..e650a176041 100644 --- a/spec/support/redis/redis_shared_examples.rb +++ b/spec/support/redis/redis_shared_examples.rb @@ -65,6 +65,14 @@ RSpec.shared_examples "redis_shared_examples" do end describe '.url' do + it 'withstands mutation' do + url1 = described_class.url + url2 = described_class.url + url1 << 'foobar' unless url1.frozen? + + expect(url2).not_to end_with('foobar') + end + context 'when yml file with env variable' do let(:config_file_name) { config_with_environment_variable_inside } @@ -101,7 +109,6 @@ RSpec.shared_examples "redis_shared_examples" do before do clear_pool end - after do clear_pool end |