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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-19 10:01:04 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-19 11:07:15 +0300
commit8fe05d83ac259bf8a0fa4ca344d330a1c0cea8bb (patch)
tree6ff8ed2edcfdf163adcd729af1f036d4c4cf4922 /spec/models/environment_spec.rb
parent31e8721a44ceddc4d3578f3af2b6c7a1797be35b (diff)
Fix validation regexs (+1 squashed commit)
Squashed commits: [f9a9315] Use : to test invalid environment name
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index 7afc7ec5ca1..6b1867a44e1 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -68,13 +68,13 @@ describe Environment, models: true do
subject { environment.environment_type }
it 'sets a environment type if name has multiple segments' do
- environment.update(name: 'production/worker.gitlab.com')
+ environment.update!(name: 'production/worker.gitlab.com')
is_expected.to eq('production')
end
it 'nullifies a type if it\'s a simple name' do
- environment.update(name: 'production')
+ environment.update!(name: 'production')
is_expected.to be_nil
end