Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
Fix failing Graphs controller test
Browse files Browse the repository at this point in the history
  • Loading branch information
joostverdoorn committed Jun 18, 2013
1 parent a3c3dcf commit a12ed2a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/javascripts/controller_specs/graphs_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ describe("Graphs", function() {
expect( controller.removeChild.callCount ).toBe( graphCount );
});

it("should have created new graphs for the new data", function() {
expect( controller.addChild ).toHaveBeenCalled();
});
_.defer( =>
it("should have created new graphs for the new data", function() {
expect( controller.addChild ).toHaveBeenCalled();
});

it("should have added the new graph view to our view", function() {
expect( view.add ).toHaveBeenCalled();
});
it("should have added the new graph view to our view", function() {
expect( view.add ).toHaveBeenCalled();
});
)
});
describe("with custom parameters", function() {
beforeEach( function() {
Expand Down

0 comments on commit a12ed2a

Please sign in to comment.