From d13e2d841a632385031a0b98a15773d8b90d05e9 Mon Sep 17 00:00:00 2001 From: ankonym Date: Wed, 2 Sep 2015 17:16:37 +0200 Subject: Fix cucumber tests by passing valid invite code --- features/step_definitions/auth_steps.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3