Fix order-dependent failure in app_spec.js
The 'sets the user' spec was failing if run after a spec that had already set the user.
This commit is contained in:
parent
ae3bd1f62e
commit
b2ee986815
1 changed files with 4 additions and 0 deletions
|
|
@ -33,6 +33,10 @@ describe("app", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("user", function() {
|
describe("user", function() {
|
||||||
|
beforeEach(function() {
|
||||||
|
logout();
|
||||||
|
});
|
||||||
|
|
||||||
it("returns false if the current_user isn't set", function() {
|
it("returns false if the current_user isn't set", function() {
|
||||||
app._user = undefined;
|
app._user = undefined;
|
||||||
expect(app.user()).toEqual(false);
|
expect(app.user()).toEqual(false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue