From 056359261222ad28d7b5fd85e0f31edce198f90f Mon Sep 17 00:00:00 2001 From: Nicolas Sanguinetti Date: Fri, 8 May 2009 17:19:13 -0300 Subject: [PATCH] Weird errors... --- test/scm/git_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/scm/git_test.rb b/test/scm/git_test.rb index 14c00f2..e4abd33 100644 --- a/test/scm/git_test.rb +++ b/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