diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-01-31 10:17:54 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-06 16:12:24 -0600 |
commit | 3dfb6a309442b181f179e854fdfe13f80f493616 (patch) | |
tree | c81343ad41f46d21b44ddef22be997d348ceb253 /spec/models/environment_spec.rb | |
parent | c8b63a28afa811881b617546fe94a19378585a04 (diff) | |
download | gitlab-ce-3dfb6a309442b181f179e854fdfe13f80f493616.tar.gz |
Tweak test to verify there are no duplicates
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r-- | spec/models/environment_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index 7b68d0756d0..5884a2f26b9 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -27,11 +27,11 @@ describe Environment, models: true do let!(:environment1) { create(:environment, project: project) } let!(:environment2) { create(:environment, project: project) } let!(:environment3) { create(:environment, project: project) } - let!(:deployment2) { create(:deployment, environment: environment2) } let!(:deployment1) { create(:deployment, environment: environment1) } + let!(:deployment2) { create(:deployment, environment: environment2) } + let!(:deployment3) { create(:deployment, environment: environment1) } it 'returns the environments in order of having been last deployed' do - # byebug expect(project.environments.order_by_last_deployed_at.to_a).to eq([environment3, environment2, environment1]) end end |