diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-22 09:08:46 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-22 09:08:46 +0000 |
commit | 9c3214640cfb572af3cc419d159c11bcd5b5e624 (patch) | |
tree | 34819e76201d08bce32d9ab97b14d2b5fcd949d7 | |
parent | d96d205ab836898a6480f6fb14463070dbade1cc (diff) | |
parent | 056b47790af776e2ea98813144ca8255092ee008 (diff) | |
download | gitlab-ce-9c3214640cfb572af3cc419d159c11bcd5b5e624.tar.gz |
Merge branch 'unify-redis_shared_examples.rb' into 'master'
Unify spec/support/redis/redis_shared_examples.rb
See merge request gitlab-org/gitlab-ce!20074
-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 |