diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-06-21 23:49:15 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-06-21 23:49:15 +0800 |
commit | 056b47790af776e2ea98813144ca8255092ee008 (patch) | |
tree | 665d46efd75baafc6d43d1b412eeaea4bbe2032e | |
parent | e446e8712cd690981b48bc54ae1c20b7f4d3f99e (diff) | |
download | gitlab-ce-unify-redis_shared_examples.rb.tar.gz |
Bring changes from EEunify-redis_shared_examples.rb
-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 |