Skip to content

Instantly share code, notes, and snippets.

@anoras
Created October 11, 2011 20:15
Show Gist options
  • Select an option

  • Save anoras/1279277 to your computer and use it in GitHub Desktop.

Select an option

Save anoras/1279277 to your computer and use it in GitHub Desktop.
Backbone.js and sinon
Snehvit:web_app anders$ guard-jasmine
Run Jasmine at http://127.0.0.1:3000/jasmine
{
"passed": true,
"stats": {
"specs": 1,
"failures": 0,
"time": 0.008
},
"suites": [
{
"description": "Vis",
"specs": [
{
"description": "Vis should default to the Main router unless a route is injected.",
"passed": true
}
]
}
]
}
describe "Vis", ->
it "should default to the Main router unless a route is injected", ->
spy = sinon.spy(window.Vis.Routers,"Main")
window.Vis.init()
expect(spy.called).toBeTruthy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment