Skip to content

Commit

Permalink
fix(server:user:spec): replace context with describe
Browse files Browse the repository at this point in the history
Jasmine doesn't have `context()`
  • Loading branch information
Awk34 committed Mar 28, 2016
1 parent 7286fee commit 5716660
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('User Model', function() {
return <%= expect() %>user.save()<%= to() %>.be.rejected;
});<% if (filters.oauth && filters.googleAuth) { %>

context('given user provider is google', function() {
describe('given user provider is google', function() {
beforeEach(function() {
user.provider = 'google';
});
Expand All @@ -67,7 +67,7 @@ describe('User Model', function() {
});
});<% } %><% if (filters.oauth && filters.facebookAuth) { %>

context('given user provider is facebook', function() {
describe('given user provider is facebook', function() {
beforeEach(function() {
user.provider = 'facebook';
});
Expand All @@ -78,7 +78,7 @@ describe('User Model', function() {
});
});<% } %><% if (filters.oauth && filters.twitterAuth) { %>

context('given user provider is twitter', function() {
describe('given user provider is twitter', function() {
beforeEach(function() {
user.provider = 'twitter';
});
Expand All @@ -89,7 +89,7 @@ describe('User Model', function() {
});
});<% } %><% if (filters.oauth) { %>

context('given user provider is github', function() {
describe('given user provider is github', function() {
beforeEach(function() {
user.provider = 'github';
});
Expand Down Expand Up @@ -117,7 +117,7 @@ describe('User Model', function() {
return <%= expect() %>user.save()<%= to() %>.be.rejected;
});

context('given the user has been previously saved', function() {
describe('given the user has been previously saved', function() {
beforeEach(function() {
return user.save();
});
Expand All @@ -139,7 +139,7 @@ describe('User Model', function() {
});
});<% if (filters.oauth && filters.googleAuth) { %>

context('given user provider is google', function() {
describe('given user provider is google', function() {
beforeEach(function() {
user.provider = 'google';
});
Expand All @@ -150,7 +150,7 @@ describe('User Model', function() {
});
});<% } %><% if (filters.oauth && filters.facebookAuth) { %>

context('given user provider is facebook', function() {
describe('given user provider is facebook', function() {
beforeEach(function() {
user.provider = 'facebook';
});
Expand All @@ -161,7 +161,7 @@ describe('User Model', function() {
});
});<% } %><% if (filters.oauth && filters.twitterAuth) { %>

context('given user provider is twitter', function() {
describe('given user provider is twitter', function() {
beforeEach(function() {
user.provider = 'twitter';
});
Expand All @@ -172,7 +172,7 @@ describe('User Model', function() {
});
});<% } %><% if (filters.oauth) { %>

context('given user provider is github', function() {
describe('given user provider is github', function() {
beforeEach(function() {
user.provider = 'github';
});
Expand Down

0 comments on commit 5716660

Please sign in to comment.