Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-02 15:07:57 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-02 15:07:57 +0300
commit988b28ec1a379d38f6ac9ed04886ee564fd447fd (patch)
tree9d93267209387e62d23ea7abf81ef9c0d64f2f0b /spec/models/environment_spec.rb
parenta325f3a104748ecc68df7c3d793940aa709a111f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index 48cabd4301c..03aef7aea5c 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -325,26 +325,6 @@ describe Environment, :use_clean_rails_memory_store_caching do
end
end
- describe '#first_deployment_for' do
- let(:project) { create(:project, :repository) }
- let!(:deployment) { create(:deployment, :succeed, environment: environment, ref: commit.parent.id) }
- let!(:deployment1) { create(:deployment, :succeed, environment: environment, ref: commit.id) }
- let(:head_commit) { project.commit }
- let(:commit) { project.commit.parent }
-
- it 'returns deployment id for the environment', :sidekiq_might_not_need_inline do
- 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.id)).to eq nil
- end
-
- it 'returns a UTF-8 ref', :sidekiq_might_not_need_inline do
- expect(environment.first_deployment_for(commit.id).ref).to be_utf8
- end
- end
-
describe '#environment_type' do
subject { environment.environment_type }