summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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