Skip to content

Commit

Permalink
Adding test to ensure currentURL is set on multiple visits
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert committed Jan 19, 2017
1 parent d4bd107 commit b38c1d5
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,8 @@ if (isFeatureEnabled('ember-routing-router-service')) {
});
}

['@test RouterService#currentURL is correctly set with component'](assert) {
assert.expect(1);

return this.visit('/').then(() => {
this.assertText('/');
});
}

['@test RouterService#currentURL is correctly set with component after consecutive visits'](assert) {
assert.expect(2);
assert.expect(3);

return this.visit('/')
.then(() => {
Expand All @@ -203,6 +195,11 @@ if (isFeatureEnabled('ember-routing-router-service')) {
})
.then(() => {
this.assertText('/child');

return this.visit('/');
})
.then(() => {
this.assertText('/');
});
}
});
Expand Down

0 comments on commit b38c1d5

Please sign in to comment.