Permalink
Browse files

Fixing bug on assertion.

Need to return same as stub, otherwise this would break on year change.
  • Loading branch information...
1 parent 964b039 commit eeae7c92d213df086a078d3be2dfa1997945404d @caike caike committed Jun 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/javascripts/guitars_spec.coffee
@@ -34,4 +34,4 @@ describe 'Guitars', ->
it 'returns year from Date', ->
spyOn(Date.prototype, 'getFullYear').andReturn(2012)
currentYear = Guitars.currentYear()
- expect(currentYear).toEqual((new Date().getFullYear()))
+ expect(currentYear).toEqual(2012)

0 comments on commit eeae7c9

Please sign in to comment.