quickleft/test_track — Issue #7: Problem with spyOn?
Author: danmaz74
Created: 2011-10-30 08:56:33+00:00
State: open

I'm using test_track with Rails 3.1. Everything worked, but when I first tried spyOn I encountered a problem. This coffeescript code:

describe "spyOn", ->
it "should spy", ->
foo =
bar: ->

spyOn(foo, 'bar')
foo.bar()
expect(foo.bar).toHaveBeenCalled()

doesn't work in my tests, but it works fine here: http://try-jasmine.heroku.com/

Is this a problem with the version of jasmine shipped with the test_track gem?