Permalink
Browse files

Merge pull request #2 from joerodriguez/master

Fixes the render_barkeep test
  • Loading branch information...
2 parents 96ec05e + d56035e commit bb3e955da9e6106d86dd7928ca43a3a6c8c4e0eb @shammond42 shammond42 committed May 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_barkeep.rb
View
@@ -16,13 +16,13 @@ def setup
should "render the barkeep bar" do
stubs(:barkeep_config => {'github_url' => 'http://github.com/project_name', 'panes' => ['branch_info', 'commit_sha_info'], 'environments' => ['development']})
- GritWrapper.instance.stubs(:repository? => true, :to_hash => {:branch => 'new_branch', :commit => 'abcdef'})
+ GritWrapper.instance.stubs(:repository? => true, :to_hash => {:branch => 'new_branch', :commit => 'abcdef', :last_author => 'Johnny', :date => '2/11/2012'})
expected = %(
<dl id="barkeep">
<dt>Branch:</dt>
<dd><a href="http://github.com/project_name/tree/new_branch">new_branch</a></dd>
<dt>Commit:</dt>
- <dd><a href="http://github.com/project_name/commit/abcdef" title="committed ">abcdef</a></dd>
+ <dd><a href="http://github.com/project_name/commit/abcdef" title="committed 2/11/2012 by Johnny">abcdef</a></dd>
<dd class="close"><a href="#" onclick="c = document.getElementById('barkeep'); c.parentNode.removeChild(c); return false" title="Close me!">&times;</a></dd>
</dl>
)

0 comments on commit bb3e955

Please sign in to comment.