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