Skip to content

Commit

Permalink
Add test case for behavior error
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Sep 1, 2014
1 parent 542a70b commit 720092c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/javascripts/behaviors.spec.js
Expand Up @@ -3,7 +3,9 @@ describe('Behaviors', function() {

describe('behavior lookup', function() {
it('should throw if behavior lookup is not defined', function() {
expect(Marionette.Behaviors.behaviorsLookup).to.throw;
expect(function() {
Marionette.Behaviors.behaviorsLookup();
}).to.throw("You must define where your behaviors are stored.See https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.behaviors.md#behaviorslookup");
});
});

Expand Down

0 comments on commit 720092c

Please sign in to comment.