Skip to content

Commit

Permalink
more testing compat updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitton committed Jan 10, 2017
1 parent f301877 commit e6a21d7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/acceptance/discover-metrics-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ moduleForAcceptance('Acceptance | discover metrics',
server.createList('discover-story', 2);
this.shows = server.createList('show', 2);
this.metrics = registerAndInjectMock(application, 'service:mockMetrics', mockMetrics, 'metrics');
server.create('stream');
},
afterEach() {
velocity.mock = false;
Expand Down Expand Up @@ -179,6 +180,7 @@ moduleForAcceptance('Acceptance | discover metrics returning user',
session.set('data.discover-queue', server.db.discoverStories); // set some saved stories
// register mock directly on the instance to fool the link handler
this.metrics = registerMockOnInstance(application, 'service:metrics', mockMetrics);
server.create('stream');
},
afterEach() {
velocity.mock = false;
Expand Down
3 changes: 3 additions & 0 deletions tests/acceptance/viewing-show-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import config from 'overhaul/config/environment';
import { authenticateSession } from 'overhaul/tests/helpers/ember-simple-auth';

moduleForAcceptance('Acceptance | Django Page | Show Page', {
beforeEach() {
server.create('stream');
},
afterEach() {
resetHTML();
}
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/services/bumper-state-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ moduleFor('service:bumper-state', 'Unit | Service | bumper state', {
'adapter:stream',
'serializer:stream',
'model:story',
'adapter:story'
'adapter:story',
'serializer:story'
],

beforeEach() {
Expand Down
8 changes: 6 additions & 2 deletions tests/unit/services/listen-queue-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import startMirage from 'overhaul/tests/helpers/setup-mirage-for-integration';
import wait from 'ember-test-helpers/wait';

moduleFor('service:listen-queue', 'Unit | Service | listen queue', {
// Specify the other units that are required for this test.
needs: ['service:session', 'model:story', 'adapter:story'],
needs: [
'service:session',
'model:story',
'adapter:story',
'serializer:story'
],
beforeEach() {
startMirage(this.container);
const sessionStub = Ember.Service.extend({
Expand Down

0 comments on commit e6a21d7

Please sign in to comment.