FIX: Support ember app routing to topics with only slugs

This commit is contained in:
Robin Ward
2014-09-17 11:18:41 -04:00
parent 943ad8d1d5
commit c16b8364ab
8 changed files with 54 additions and 6 deletions

View File

@ -1,11 +1,16 @@
integration("View Topic");
test("Enter a Topic", function() {
expect(2);
visit("/t/internationalization-localization/280");
andThen(function() {
ok(exists("#topic"), "The was rendered");
ok(exists("#topic"), "The topic was rendered");
ok(exists("#topic .post-cloak"), "The topic has cloaked posts");
});
});
test("Enter without an id", function() {
visit("/t/internationalization-localization");
andThen(function() {
ok(exists("#topic"), "The topic was rendered");
});
});