diff options
author | Elvin Efendi <elvin.efendiyev@gmail.com> | 2015-12-07 15:38:34 -0500 |
---|---|---|
committer | Elvin Efendi <elvin.efendiyev@gmail.com> | 2015-12-07 15:38:34 -0500 |
commit | 1df0f01c6166e1ef1653c90818aaa47118af4700 (patch) | |
tree | d696c613d390b4d58eee217e6054c0858a8a16f3 /spec/githubrepo_spec.rb | |
parent | d0105ef311a9bfd0ecd23efe77678670d6042e02 (diff) | |
parent | 68dd88766604145a8c8d16b22a68a9850ce92564 (diff) |
Merge pull request #9 from Shopify/pull-master
Pull master
Diffstat (limited to 'spec/githubrepo_spec.rb')
-rw-r--r-- | spec/githubrepo_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/githubrepo_spec.rb b/spec/githubrepo_spec.rb index a193cd6..9b509e4 100644 --- a/spec/githubrepo_spec.rb +++ b/spec/githubrepo_spec.rb @@ -17,6 +17,10 @@ describe Oxidized::Node do remote.expects(:push).returns(true) 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.expects(:branches).returns({}) Rugged::Repository.expects(:new).with('foo.git').returns(repo) end |