Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Created January 10, 2011 16:45
Show Gist options
  • Select an option

  • Save gmoeck/773028 to your computer and use it in GitHub Desktop.

Select an option

Save gmoeck/773028 to your computer and use it in GitHub Desktop.
var task;
module("Given I am viewing the tasks page", {
setup: function() {
SC.RunLoop.begin();
Todos.main();
SC.RunLoop.end();
},
teardown: function() {
SC.RunLoop.begin();
Todos.getPath('mainPage.mainPane').remove();
Todos.store.reset();
SC.RunLoop.end();
}
});
test("When there are no tasks inputted", function() {
var summaryView = Todos.getPath('mainPage.mainPane.bottomView.summaryView');
equals(summaryView.get('value'), 'No Tasks', 'Then I should see "No Tasks" within the tasks count section of the page');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment