Permalink
Browse files

Weird errors...

  • Loading branch information...
1 parent a9ab643 commit 056359261222ad28d7b5fd85e0f31edce198f90f @foca foca committed May 8, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/scm/git_test.rb
View
7 test/scm/git_test.rb
@@ -13,7 +13,7 @@ def setup
test "with a successful build" do
repo.add_successful_commit
- commit_id = repo.commits.first[:identifier]
+ commit_id = repo.commits.last[:identifier]
buildable.build(commit_id)
@@ -31,7 +31,7 @@ def setup
test "with a failed build" do
repo.add_failing_commit
- commit_id = repo.commits.first[:identifier]
+ commit_id = repo.commits.last[:identifier]
buildable.build(commit_id)
@@ -48,8 +48,9 @@ def setup
test "with multiple commits" do
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, buildable.metadata.length

0 comments on commit 0563592

Please sign in to comment.