Add test for discard method

This commit is contained in:
Blade Barringer
2015-07-24 17:29:47 -05:00
parent 60ee0c911f
commit 7c43f87858

View File

@@ -528,7 +528,13 @@ describe('Challenges Controller', function() {
});
describe('discard', function() {
it('sets new challenge to null');
it('sets new challenge to null', function() {
scope.newChallenge = specHelper.newChallenge();
scope.discard();
expect(scope.newChallenge).to.not.exist;
});
});
describe('clone', function() {