Bundle shoulda and use ActiveModel matchers in specs

This commit is contained in:
Thibault Jouan
2011-09-21 00:07:19 +00:00
parent 72f800397d
commit 6af1540640
7 changed files with 27 additions and 84 deletions

View File

@@ -1,6 +1,6 @@
class Playlist < ActiveRecord::Base
belongs_to :user
validates_presence_of :user_id
validates_presence_of :user
validates_presence_of :name
end