File tree Expand file tree Collapse file tree
__testfixtures__/ember-qunit-codemod Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3232module ( '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
4040module ( '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
You can’t perform that action at this time.
0 commit comments