From ae8f755fc81160b695e44bbfb00b1225527bf5f9 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Thu, 6 Aug 2015 16:44:45 +0200 Subject: Initial support for build triggers --- spec/models/commit_spec.rb | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'spec/models/commit_spec.rb') 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 -- cgit v1.2.1