I created a test to validate my model and want to know if it is correct.
describe Article do
it "object article create is valid?" do
article = Article.create
article.title = "Title for Test"
article.description = ""
article.body = "Body for Test"
article.position_image_highlighted = ""
expect(article.valid?).to be
end
end
The validation returns without fail, but I do not know if this code has the best practice for the due test.