12 lines
326 B
JavaScript
12 lines
326 B
JavaScript
describe("app.pages.SinglePostViewer", function(){
|
|
beforeEach(function() {
|
|
window.gon={};gon.post = {id: 42};
|
|
this.view = new app.pages.SinglePostViewer();
|
|
});
|
|
|
|
context("#initialize", function() {
|
|
it("uses post-id from gon", function() {
|
|
expect(this.view.model.id).toBe(gon.post.id);
|
|
});
|
|
});
|
|
});
|