Skip to content

Commit af6ec3a

Browse files
committed
fix factory_bot factory declarations
1 parent 0253b4b commit af6ec3a

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FactoryBot.define do
22
factory :reset_password, class: ApiSessionRecovering::ResetPassword do
3-
frontend_path Faker::Internet.url
4-
remote_ip Faker::Internet.ip_v4_address
5-
email Faker::Internet.email
6-
token SecureRandom.urlsafe_base64
7-
expire_at 1.day.from_now.utc
3+
frontend_path { Faker::Internet.url }
4+
remote_ip { Faker::Internet.ip_v4_address }
5+
email { Faker::Internet.email }
6+
token { SecureRandom.urlsafe_base64 }
7+
expire_at { 1.day.from_now.utc }
88
end
99
end

spec/factories/restore_password_factory.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
factory :restore_password, class: ApiSessionRecovering::RestorePassword do
33
user
44

5-
frontend_path Faker::Internet.url
6-
remote_ip Faker::Internet.ip_v4_address
7-
email Faker::Internet.email
8-
token SecureRandom.urlsafe_base64
9-
expire_at 1.day.from_now.utc
5+
frontend_path { Faker::Internet.url }
6+
remote_ip { Faker::Internet.ip_v4_address }
7+
email { Faker::Internet.email }
8+
token { SecureRandom.urlsafe_base64 }
9+
expire_at { 1.day.from_now.utc }
1010
end
1111
end

spec/factories/user_factory.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FactoryBot.define do
22
factory :user, class: ApiSessionRecovering::User do
3-
password Faker::Internet.password
4-
5-
email Faker::Internet.email
3+
password { Faker::Internet.password }
4+
email { Faker::Internet.email }
65
end
76
end

0 commit comments

Comments
 (0)