Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL]: replace -rest adapter usage in tests #6342

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

snewcomer
Copy link
Contributor

@snewcomer snewcomer commented Aug 18, 2019

This PR is meant to eliminate -rest usage as described in #6166.

  • drop -rest from usage in tests and instead register application

Follow up:

  • drop -rest from createStore && setupStore
  • if using RestAdapter, also register RestSerializer explicitly in test
  • drop -default from createStore && setupStore and instead register application. Don't set this adapter on store in these helpers
    ...

Ref #6166

@snewcomer snewcomer force-pushed the sn/-rest branch 4 times, most recently from 74ba19f to 7abf146 Compare August 18, 2019 17:01
assert.ok(!didInstantiateAppAdapter, 'We did not instantiate the application adapter again');
assert.ok(didInstantiateRestAdapter, 'We instantiated the fallback adapter');
assert.ok(restAdapter !== appAdapter, `We did not use the application adapter instance`);
});

test('we can specify a fallback adapter by name in place of the application adapter', async function(assert) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

near duplicate of another test above

@snewcomer snewcomer changed the title [INTERNAL]: replace -rest adapter usage [INTERNAL]: replace -rest adapter usage in tests Aug 18, 2019
@runspired runspired merged commit 7c7ebdf into emberjs:master Aug 20, 2019
@snewcomer snewcomer deleted the sn/-rest branch August 20, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants