diff options
author | azul <azul@leap.se> | 2015-09-30 10:51:21 +0200 |
---|---|---|
committer | azul <azul@leap.se> | 2015-09-30 10:51:21 +0200 |
commit | d45f6c61f6a13be06f1977b857e0cb31e79c5317 (patch) | |
tree | d3089b334c2663ea2fd76cf62dea853bdd57b047 /features/step_definitions | |
parent | a894966e425f27c31e7da196658c6ddee3fc3714 (diff) | |
parent | d4f10a8d47572bcab4c44878b952146732d64d2e (diff) |
Merge pull request #194 from Alster-Hamburgers/feature/invite_code
Request for feedback on invite code feature
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 |