diff options
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r-- | spec/models/repository_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index e81816404f7..71f9b964e70 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -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 |