diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-03-06 00:03:48 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-03-06 16:05:34 -0300 |
commit | bc365bd15a0ec0317a4fce71d024397f26ab56c5 (patch) | |
tree | 74e8dce48c7430583033375c303fa54eb40ab5aa /spec/models/environment_spec.rb | |
parent | 49f72d06654bd7bdea259154e1092a53aab57acc (diff) | |
download | gitlab-ce-bc365bd15a0ec0317a4fce71d024397f26ab56c5.tar.gz |
Use persisted/memoized value for MRs shas instead of doing git lookups
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r-- | spec/models/environment_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index 6f24a039998..16fdd154e7f 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -142,15 +142,15 @@ describe Environment do let(:commit) { project.commit.parent } it 'returns deployment id for the environment' do - expect(environment.first_deployment_for(commit)).to eq deployment1 + expect(environment.first_deployment_for(commit.id)).to eq deployment1 end it 'return nil when no deployment is found' do - expect(environment.first_deployment_for(head_commit)).to eq nil + expect(environment.first_deployment_for(head_commit.id)).to eq nil end it 'returns a UTF-8 ref' do - expect(environment.first_deployment_for(commit).ref).to be_utf8 + expect(environment.first_deployment_for(commit.id).ref).to be_utf8 end end |