diff options
author | Azul <azul@riseup.net> | 2017-12-08 18:27:24 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-12-08 21:33:09 +0100 |
commit | d839bed40fb7901ea88395d4ba06e58f4b3cc88a (patch) | |
tree | 5939690ac0f0f2226459aa9412a80292515ebae2 /test/integration/browser | |
parent | ff8b2635c308d45ec38fd4eed257db7da9b3c4b0 (diff) |
upgrade: factory_girl -> factory_bot
Diffstat (limited to 'test/integration/browser')
-rw-r--r-- | test/integration/browser/account_livecycle_test.rb | 2 | ||||
-rw-r--r-- | test/integration/browser/admin_test.rb | 2 | ||||
-rw-r--r-- | test/integration/browser/security_test.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/browser/account_livecycle_test.rb b/test/integration/browser/account_livecycle_test.rb index 68775d3..48be234 100644 --- a/test/integration/browser/account_livecycle_test.rb +++ b/test/integration/browser/account_livecycle_test.rb @@ -103,7 +103,7 @@ class AccountLivecycleTest < BrowserIntegrationTest test "change pgp key" do with_config user_actions: ['change_pgp_key'] do - pgp_key = FactoryGirl.build :pgp_key + pgp_key = FactoryBot.build :pgp_key username, _password = submit_signup click_on "Account Settings" within('#update_pgp_key') do diff --git a/test/integration/browser/admin_test.rb b/test/integration/browser/admin_test.rb index 0b43c29..ff36416 100644 --- a/test/integration/browser/admin_test.rb +++ b/test/integration/browser/admin_test.rb @@ -21,7 +21,7 @@ class AdminTest < BrowserIntegrationTest end test "clear blocked handle" do - id = FactoryGirl.create :identity + id = FactoryBot.create :identity submit_signup(id.login) assert page.has_content?('has already been taken') login diff --git a/test/integration/browser/security_test.rb b/test/integration/browser/security_test.rb index 825d50b..7073b76 100644 --- a/test/integration/browser/security_test.rb +++ b/test/integration/browser/security_test.rb @@ -10,7 +10,7 @@ class SecurityTest < BrowserIntegrationTest test "detects attempt to circumvent SRP" do InviteCodeValidator.any_instance.stubs(:validate) - user = FactoryGirl.create :user + user = FactoryBot.create :user visit '/login' fill_in 'Username', with: user.login fill_in 'Password', with: "password" |