Skip to content

Deprecated static attributes are still used in factories.rb #98

@ryanzidago

Description

@ryanzidago

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions