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:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-04-25 18:47:57 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-04-26 12:45:41 +0300
commit67974f1dfb413452ca6fc048c856360f4a843eb1 (patch)
tree0811506a774e5938634e1c38c4edc44d4a4b2a09 /spec/models/service_spec.rb
parent3ff8d8020e495df319f0b0921bc94b1c3470f6f0 (diff)
remove invalid services
Diffstat (limited to 'spec/models/service_spec.rb')
-rw-r--r--spec/models/service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb
index 0e2f07e945f..f5ba8f76f40 100644
--- a/spec/models/service_spec.rb
+++ b/spec/models/service_spec.rb
@@ -6,6 +6,10 @@ describe Service, models: true do
it { is_expected.to have_one :service_hook }
end
+ describe 'Validations' do
+ it { is_expected.to validate_presence_of(:type).on(:create) }
+ end
+
describe "Test Button" do
before do
@service = Service.new