Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git://github.com/thoughtworks/cruisecontrol.rb

  • Loading branch information...
commit d3f0f0389daba0c929d4bdb5cd85d27ed33fdb3e 2 parents bb9a76d + 75c2c51
Matt Duncan mrduncan authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 test/unit/project_test.rb
8 test/unit/project_test.rb
View
@@ -82,6 +82,7 @@ def test_should_build_with_no_logs
build = new_mock_build('5')
build.stubs(:artifacts_directory).returns(sandbox.root)
+ build.stubs(:successful?).returns(true)
@project.stubs(:builds).returns([])
@project.stubs(:config_modified?).returns(false)
@@ -302,6 +303,7 @@ def test_should_build_when_logs_are_not_current
build = new_mock_build('2')
@project.stubs(:last_build).returns(nil)
build.stubs(:artifacts_directory).returns(sandbox.root)
+ build.stubs(:successful?).returns(true)
@svn.stubs(:up_to_date?).with([]).returns(false)
@svn.expects(:update).with(revision)
@svn.expects(:latest_revision).returns(revision)
@@ -438,13 +440,17 @@ def test_build_should_generate_new_label_if_same_name_label_exists
new_build = stub_build('20.2')
new_build_with_interesting_number = stub_build('2')
+ builder_status = Object.new
+ builder_status.stubs(:build_initiated).returns(true)
+ BuilderStatus.expects(:new).returns(builder_status)
+
project = Project.new('project1', @svn)
@svn.stubs(:update)
project.stubs(:log_changeset)
project.stubs(:builds).returns([existing_build1, existing_build2])
project.stubs(:last_build).returns(nil)
project.stubs(:new_revisions).returns(nil)
-
+
Build.expects(:new).with(project, '20.2').returns(new_build)
project.build(new_revision(20))
Please sign in to comment.
Something went wrong with that request. Please try again.