Bundle shoulda and use ActiveModel matchers in specs
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user