summaryrefslogtreecommitdiff
path: root/test/support/browser_integration_test.rb
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-09-01 10:48:25 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:45 +0200
commitc48e921c101d49bf68fa1af489b8012517b1a105 (patch)
tree78cc0754a9e24c805e8dc5cf4c2af4e204752af3 /test/support/browser_integration_test.rb
parent06ebc254bc4537e81c1336627ba8a54c881a1765 (diff)
Fix several test failures by stubbing invite code validation
Diffstat (limited to 'test/support/browser_integration_test.rb')
-rw-r--r--test/support/browser_integration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb
index b4bc273..f20421d 100644
--- a/test/support/browser_integration_test.rb
+++ b/test/support/browser_integration_test.rb
@@ -60,7 +60,7 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest
# currently this only works for tests with poltergeist.
# ApiIntegrationTest has a working implementation for RackTest
def login(user = nil)
- InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false)
+ InviteCodeValidator.any_instance.stubs(:validate)
@user ||= user ||= FactoryGirl.create(:user)
token = Token.create user_id: user.id
page.driver.add_header "Authorization", %Q(Token token="#{token}")