Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Use injection to access service from test context #846

Merged
merged 1 commit into from Oct 1, 2015
Merged

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Oct 1, 2015

This behavior is supported in ember-qunit 0.4.12, and I think it's nicer than asking users to save their own local variable during init.

This behavior is supported in ember-qunit 0.4.12, and I think it's nicer than asking users to save their own local variable during init.
michaelrkn added a commit that referenced this pull request Oct 1, 2015
Use injection to access service from test context
@michaelrkn michaelrkn merged commit c58b17b into master Oct 1, 2015
@michaelrkn michaelrkn deleted the ef4-patch-1 branch October 1, 2015 14:59
@@ -272,9 +265,9 @@ test('should change displayed location when current location changes', function
this.render(hbs`{{location-indicator}}`);
assert.equal(this.$().text().trim(), 'You currently are located in New York, USA', 'origin location should display');
Ember.run(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove the ember.run using this.set now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yes, that's true. The sets handle their own run loops.

@toddjordan
Copy link
Contributor

I ran the example and it passes so we are good from that end.

@toddjordan
Copy link
Contributor

@michaelrkn could we get second merge when the above comment is updated?

@ef4
Copy link
Contributor Author

ef4 commented Oct 1, 2015

I'll do a followup PR.

@toddjordan
Copy link
Contributor

cool

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants