Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
norbert committed Oct 11, 2009
1 parent c70b656 commit e91f76b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/integration/adding_test.rb
Expand Up @@ -24,7 +24,7 @@

output = `git log --pretty=oneline`.split("\n")
output.length.should == 2
output[0].should =~ /Braid: Added mirror 'skit1' at '[0-9a-f]{7}'/
output[0].should =~ /Braid: Add mirror 'skit1' at '[0-9a-f]{7}'/
end

it "should create .braids and add the mirror to it" do
Expand Down Expand Up @@ -59,7 +59,7 @@

output = `git log --pretty=oneline`.split("\n")
output.length.should == 2
output[0].should =~ /Braid: Added mirror 'skit1' at r1/
output[0].should =~ /Braid: Add mirror 'skit1' at r1/
end

it "should create .braids and add the mirror to it" do
Expand Down
4 changes: 2 additions & 2 deletions test/integration/updating_test.rb
Expand Up @@ -41,7 +41,7 @@

output = `git log --pretty=oneline`.split("\n")
output.length.should == 3
output[0].should =~ /Braid: Updated mirror 'skit1' to '[0-9a-f]{7}'/
output[0].should =~ /Braid: Update mirror 'skit1' to '[0-9a-f]{7}'/
end

end
Expand Down Expand Up @@ -79,7 +79,7 @@

output = `git log --pretty=oneline`.split("\n")
output.length.should == 3
output[0].should =~ /Braid: Updated mirror 'skit1' to r3/
output[0].should =~ /Braid: Update mirror 'skit1' to r3/
end

end
Expand Down
2 changes: 1 addition & 1 deletion test/mirror_test.rb
Expand Up @@ -61,7 +61,7 @@ def set_hashes(remote_hash, local_hash)
it "should generate a diff when the hashes do not match" do
set_hashes('b' * 40, 'c' * 40)
diff = "diff --git a/path b/path\n"
git.expects(:diff_tree).with('b' * 40, 'c' * 40, @mirror.path).returns(diff)
git.expects(:diff_tree).with('b' * 40, 'c' * 40).returns(diff)
@mirror.diff.should == diff
end
end
Expand Down

0 comments on commit e91f76b

Please sign in to comment.