This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe Video do | |
| describe :validations do | |
| before { Factory(:video) } | |
| it { should validate_presence_of :artist, :title, :link, :user_id } | |
| it { should validate_uniqueness_of :link } | |
| it { should validate_uniqueness_of :title, :scope => :artist, :message => "and Artist are not unique. This song has already been added." } | |
| end |
NewerOlder