You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depracted static attributes are still used in factories.rb:
factory :link do
title "Testing Rails"
url "http://testingrailsbook.com"
trait :invalid do
title nil
end
end
end
Instead, the code should look like this with dynamic attributes:
factory :link do
title { "Testing Rails" }
url { "http://testingrailsbook.com" }
trait :invalid do
title { nil }
end
end
end
The text was updated successfully, but these errors were encountered:
ryanzidago
changed the title
Deprecated static attributes still used in factories.rb
Deprecated static attributes are still used in factories.rb
Jul 20, 2019
Depracted static attributes are still used in factories.rb:
Instead, the code should look like this with dynamic attributes:
The text was updated successfully, but these errors were encountered: