Skip to content

Instantly share code, notes, and snippets.

@rubysolo
Created September 4, 2014 21:06
Show Gist options
  • Save rubysolo/1a434b31e92e9ef2c750 to your computer and use it in GitHub Desktop.
Save rubysolo/1a434b31e92e9ef2c750 to your computer and use it in GitHub Desktop.
describe 'routes', ->
state = null
beforeEach ->
module 'templates'
module 'myApp', ->
inject (_$state_)-> state = _$state_
it 'generates some url', ->
expect(state.href('some.state', {param: 'foo'})).toEqual '/some/state/foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment