diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-06 16:44:45 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-21 14:49:36 +0100 |
commit | ae8f755fc81160b695e44bbfb00b1225527bf5f9 (patch) | |
tree | 755e60bad6f63014e3ae7eea8cd0ad018a611956 /spec/models/commit_spec.rb | |
parent | 1ba150e1cf346239eafec3d530b3de3325501893 (diff) | |
download | gitlab-ci-ae8f755fc81160b695e44bbfb00b1225527bf5f9.tar.gz |
Initial support for build triggers
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 2074781..dbb9a9e 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -2,16 +2,17 @@ # # Table name: commits # -# id :integer not null, primary key -# project_id :integer -# ref :string(255) -# sha :string(255) -# before_sha :string(255) -# push_data :text -# created_at :datetime -# updated_at :datetime -# tag :boolean default(FALSE) -# yaml_errors :text +# id :integer not null, primary key +# project_id :integer +# ref :string(255) +# sha :string(255) +# before_sha :string(255) +# push_data :text +# created_at :datetime +# updated_at :datetime +# tag :boolean default(FALSE) +# yaml_errors :text +# committed_at :datetime # require 'spec_helper' @@ -141,15 +142,15 @@ describe Commit do commit.builds.reload commit.builds.size.should == 2 - commit.create_next_builds.should be_true + commit.create_next_builds(nil).should be_true commit.builds.reload commit.builds.size.should == 4 - commit.create_next_builds.should be_true + commit.create_next_builds(nil).should be_true commit.builds.reload commit.builds.size.should == 5 - commit.create_next_builds.should be_false + commit.create_next_builds(nil).should be_false end end |