Skip to content

Commit

Permalink
Removed unfunctional route mixin test
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Graham Walker committed Mar 7, 2016
1 parent dcb5322 commit a2f0a4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 5 additions & 3 deletions tests/unit/mixins/components/conditional-validations-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import ComponentsConditionalValidationsMixin from 'ember-easy-form-extensions/mi
import ComponentsFormMixin from 'ember-easy-form-extensions/mixins/components/form';
import { module, test } from 'qunit';

const { run } = Ember;

let subject;

module('Unit | Mixin | components/conditional validations', {
Expand All @@ -28,17 +30,17 @@ test('Calls to validate', function(assert) {

subject.validate = function() {
assert.ok(true, 'Validate should be called when bananas changes');
}
};

assert.ok(subject.hasObserverFor('bananas'), 'Should add observers on init');

subject.set('bananas', true);

Ember.run(this, function() {
run(this, function() {
subject.destroy();


Ember.run.next(this, function() {
run.next(this, function() {
assert.notOk(subject.hasObserverFor('bananas'), 'Should remove observers on destroy');
done();
});
Expand Down
12 changes: 0 additions & 12 deletions tests/unit/mixins/routes/undo-dirty-model-test.js

This file was deleted.

0 comments on commit a2f0a4b

Please sign in to comment.