summaryrefslogtreecommitdiff
path: root/test/integration/browser/account_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/integration/browser/account_test.rb
parent06ebc254bc4537e81c1336627ba8a54c881a1765 (diff)
Fix several test failures by stubbing invite code validation
Diffstat (limited to 'test/integration/browser/account_test.rb')
-rw-r--r--test/integration/browser/account_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/browser/account_test.rb b/test/integration/browser/account_test.rb
index 34eb72e..6ab9eb2 100644
--- a/test/integration/browser/account_test.rb
+++ b/test/integration/browser/account_test.rb
@@ -47,6 +47,7 @@ class AccountTest < BrowserIntegrationTest
test "account destruction" do
username, password = submit_signup
+
click_on I18n.t('account_settings')
click_on I18n.t('destroy_my_account')
assert page.has_content?(I18n.t('account_destroyed'))
@@ -102,6 +103,8 @@ class AccountTest < BrowserIntegrationTest
# trying to seed an invalid A for srp login
test "detects attempt to circumvent SRP" do
+ InviteCodeValidator.any_instance.stubs(:validate)
+
user = FactoryGirl.create :user
visit '/login'
fill_in 'Username', with: user.login