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/unit/user_test.rb | |
parent | ff8b2635c308d45ec38fd4eed257db7da9b3c4b0 (diff) |
upgrade: factory_girl -> factory_bot
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index ab7add0..bd05170 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -5,7 +5,7 @@ class UserTest < ActiveSupport::TestCase include SRP::Util setup do InviteCodeValidator.any_instance.stubs(:validate) - @user = FactoryGirl.build(:user) + @user = FactoryBot.build(:user) end test "don't find a user with login nil" do @@ -62,13 +62,13 @@ class UserTest < ActiveSupport::TestCase end test "login needs to be unique" do - other_user = FactoryGirl.create :user, login: @user.login + other_user = FactoryBot.create :user, login: @user.login assert !@user.valid? other_user.destroy end test "login needs to be unique amongst aliases" do - other_user = FactoryGirl.create :user + other_user = FactoryBot.create :user id = Identity.create_for other_user, address: @user.login assert !@user.valid? id.destroy |