Skip to content

Commit

Permalink
Weird errors...
Browse files Browse the repository at this point in the history
  • Loading branch information
foca committed May 8, 2009
1 parent a9ab643 commit 0563592
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/scm/git_test.rb
Expand Up @@ -13,7 +13,7 @@ def setup
test "with a successful build" do test "with a successful build" do
repo.add_successful_commit repo.add_successful_commit


commit_id = repo.commits.first[:identifier] commit_id = repo.commits.last[:identifier]


buildable.build(commit_id) buildable.build(commit_id)


Expand All @@ -31,7 +31,7 @@ def setup
test "with a failed build" do test "with a failed build" do
repo.add_failing_commit repo.add_failing_commit


commit_id = repo.commits.first[:identifier] commit_id = repo.commits.last[:identifier]


buildable.build(commit_id) buildable.build(commit_id)


Expand All @@ -48,8 +48,9 @@ def setup


test "with multiple commits" do test "with multiple commits" do
2.times { repo.add_failing_commit } 2.times { repo.add_failing_commit }
commits = repo.commits.collect { |c| c[:identifier] }


buildable.build(repo.commits.collect { |c| c[:identifier] }) buildable.build(commits)


assert_equal 2, commits.length assert_equal 2, commits.length
assert_equal 2, buildable.metadata.length assert_equal 2, buildable.metadata.length
Expand Down

0 comments on commit 0563592

Please sign in to comment.