diff options
author | ankonym <ankonym@gmail.com> | 2015-09-02 17:16:37 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:45 +0200 |
commit | d13e2d841a632385031a0b98a15773d8b90d05e9 (patch) | |
tree | e09f7d65543341014c45a313b62d3f1cebca6623 /features/step_definitions | |
parent | 2f7d085c5747a1a68afc0d854fa087ffbb46f8e7 (diff) |
Fix cucumber tests by passing valid invite code
Diffstat (limited to 'features/step_definitions')
-rw-r--r-- | features/step_definitions/auth_steps.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/features/step_definitions/auth_steps.rb b/features/step_definitions/auth_steps.rb index e75455a..52c92ee 100644 --- a/features/step_definitions/auth_steps.rb +++ b/features/step_definitions/auth_steps.rb @@ -1,5 +1,7 @@ Given /^I authenticated$/ do - @user = FactoryGirl.create(:user) + @testcode = InviteCode.new + @testcode.save! + @user = FactoryGirl.create(:user, :invite_code => @testcode.invite_code) @my_auth_token = Token.create user_id: @user.id end |