Skip to content

Commit 67b9488

Browse files
committed
Fix deprecated static attributes in factories
Static attributes will be removed in FactoryBot 5.0.
1 parent e5119a2 commit 67b9488

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

spec/factories/activities.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
FactoryBot.define do
44
factory :activity do
5-
name 'Party!'
6-
start_time '2013/12/12 18:00'
7-
end_time '2013/12/13 03:00'
8-
anytime false
9-
location 'Ballroom'
5+
name { 'Party!' }
6+
start_time { '2013/12/12 18:00' }
7+
end_time { '2013/12/13 03:00' }
8+
anytime { false }
9+
location { 'Ballroom' }
1010
creator { FactoryBot.create(:user) }
1111
event { Event.new('Some Conference', Time.zone.parse('2013/12/10 18:00'), Time.zone.parse('2013/12/18 18:00')) }
1212
end

spec/factories/authentications.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FactoryBot.define do
22
factory :authentication do
33
uid { generate(:uid) }
4-
provider 'Provider'
4+
provider { 'Provider' }
55
user
66
end
77
end

spec/factories/users.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
FactoryBot.define do
44
factory :user do
55
email { generate(:email) }
6-
password 'qweqweqwe'
6+
password { 'qweqweqwe' }
77
end
88
end

0 commit comments

Comments
 (0)