-
-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
Content below exists in guide from the initial version
Add an example ensuring that the model created with FactoryBot.create is valid.
describe Article do
it 'is valid with valid attributes' do
expect(article).to be_valid
end
end
I would not add additional code to spec factory validity if factory bot is delivering that one (also with traits: true)
see: https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#linting-factories
pirj
Metadata
Metadata
Assignees
Labels
No labels