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:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-03 14:37:39 +0300
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-11 22:29:57 +0300
commitb497b0ce3fc3c1882639f9c7d55f7991ce41f15d (patch)
tree353668ef819c38e3e9a208530a36501b4c524313 /spec/models/environment_spec.rb
parent826862d48ef80ddd849b9e3cb05ef37ba7be41e9 (diff)
Incorporate feedback
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index 8a84ac0a7c7..e65b4f82eff 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -30,4 +30,14 @@ describe Environment, models: true do
expect(env.external_url).to be_nil
end
end
+
+ describe '#deployed_from?' do
+ let(:environment) { create(:environment) }
+
+ context 'without a last deployment' do
+ it "returns false" do
+ expect(environment.deployed_from?('HEAD')).to be false
+ end
+ end
+ end
end