diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/service_spec.rb | 4 |
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 |