summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-09-02 17:16:37 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:45 +0200
commitd13e2d841a632385031a0b98a15773d8b90d05e9 (patch)
treee09f7d65543341014c45a313b62d3f1cebca6623 /features
parent2f7d085c5747a1a68afc0d854fa087ffbb46f8e7 (diff)
Fix cucumber tests by passing valid invite code
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions/auth_steps.rb4
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