Fix some tests. Use travis-ci 1.9.2

This commit is contained in:
Dmitriy Zaporozhets 2013-01-05 00:43:32 +02:00
parent e16cebac3e
commit 9a88e4d184
7 changed files with 10 additions and 36 deletions

View file

@ -30,7 +30,7 @@ describe Repository do
end
it "returns non-master when master exists but default branch is set to something else" do
repository.default_branch = 'stable'
repository.root_ref = 'stable'
repository.should_receive(:branch_names).at_least(:once).and_return([stable, master])
repository.discover_default_branch.should == 'stable'
end