summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiev@shopify.com>2015-12-08 18:43:18 -0500
committerElvin Efendi <elvin.efendiev@shopify.com>2015-12-08 18:43:18 -0500
commitb6a9c3ae528de0b577ff3f7c601b4ca5b641185d (patch)
tree322868ba1cfb4953452033813374b32711d0faf5 /spec
parent2eef353c6ef98662c3092a5a28ee6f167b1d1774 (diff)
fix spec
Diffstat (limited to 'spec')
-rw-r--r--spec/githubrepo_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/githubrepo_spec.rb b/spec/githubrepo_spec.rb
index 9b509e4..07296f3 100644
--- a/spec/githubrepo_spec.rb
+++ b/spec/githubrepo_spec.rb
@@ -18,8 +18,9 @@ describe Oxidized::Node do
repo.expects(:remotes).returns({'origin' => remote})
repo.expects(:path).returns('foo.git')
repo_head = mock()
- repo_head.expects(:name).returns('origin/master')
- repo.expects(:head).returns(repo_head)
+ repo_head.expects(:name).twice.returns('origin/master')
+ repo.expects(:head).twice.returns(repo_head)
+ repo.expects(:fetch).returns(true)
repo.expects(:branches).returns({})
Rugged::Repository.expects(:new).with('foo.git').returns(repo)
end