Skip to content

Commit 3e9117b

Browse files
author
Robert Jackson
committed
Fix test fixtures for expected moduleForModel output.
1 parent 316ea5e commit 3e9117b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

__testfixtures__/ember-qunit-codemod/subject.output.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ module('Unit | Model | Foo', function(hooks) {
2121
setupTest(hooks);
2222

2323
test('has some thing', function (assert) {
24-
let subject = this.owner.factoryFor('model:foo').create();
24+
let subject = this.owner.lookup('service:store').createRecord('foo');
2525
});
2626

2727
test('has another thing', function (assert) {
28-
let subject = this.owner.factoryFor('model:foo').create({ size: 'big' });
28+
let subject = this.owner.lookup('service:store').createRecord('foo', { size: 'big' });
2929
});
3030
});
3131

3232
module('Integration | Model | Foo', function(hooks) {
3333
setupTest(hooks);
3434

3535
test('has some thing', function (assert) {
36-
let subject = this.owner.factoryFor('model:foo').create();
36+
let subject = this.owner.lookup('service:store').createRecord('foo');
3737
});
3838
});
3939

4040
module('Unit | Model | Foo', function(hooks) {
4141
setupTest(hooks);
4242

4343
test('has some thing', function (assert) {
44-
let subject = this.owner.factoryFor('model:foo').create();
44+
let subject = this.owner.lookup('service:store').createRecord('foo');
4545
});
4646
});
4747

0 commit comments

Comments
 (0)