diff options
Diffstat (limited to 'spec/models/ci/trigger_spec.rb')
-rw-r--r-- | spec/models/ci/trigger_spec.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/models/ci/trigger_spec.rb b/spec/models/ci/trigger_spec.rb index 19c14ef2da2..cb2f51e2011 100644 --- a/spec/models/ci/trigger_spec.rb +++ b/spec/models/ci/trigger_spec.rb @@ -1,7 +1,19 @@ +# == Schema Information +# +# Table name: ci_triggers +# +# id :integer not null, primary key +# token :string(255) +# project_id :integer not null +# deleted_at :datetime +# created_at :datetime +# updated_at :datetime +# + require 'spec_helper' -describe Ci::Trigger do - let(:project) { FactoryGirl.create :ci_project } +describe Ci::Trigger, models: true do + let(:project) { FactoryGirl.create :empty_project } describe 'before_validation' do it 'should set an random token if none provided' do |