Created
January 23, 2014 02:30
-
-
Save raytiley/8571793 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("Issue 4201", function() { | |
expect(1); | |
Router.map(function() { | |
this.resource('lobby', function() { | |
this.route('index', { | |
path: ':lobby_id' | |
}); | |
this.route('list'); | |
}); | |
}); | |
App.LobbyIndexRoute = Ember.Route.extend({ | |
model: function(params) { | |
debugger; | |
equal(params.lobby_id, 'foobar'); | |
return params.lobby_id; | |
} | |
}); | |
Ember.TEMPLATES['lobby/index'] = compile('{{this}}'); | |
Ember.TEMPLATES.index = compile("{{#link-to 'lobby' 'foobar' id='lobby-link'}}Lobby{{/link-to}}"); | |
bootApplication(); | |
Ember.run(Ember.$('#lobby-link'), 'click'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment