Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Article < ActiveRecord::Base
- validates :title, presence: true
- end
- describe Article do
- subject(:article) { Article.new(attributes_for(:article) }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement