Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created January 23, 2014 02:30
Show Gist options
  • Save raytiley/8571793 to your computer and use it in GitHub Desktop.
Save raytiley/8571793 to your computer and use it in GitHub Desktop.
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