Add missing spec for "user has many playlists" association
This commit is contained in:
parent
686162e270
commit
d153755296
@ -5,6 +5,7 @@ describe User do
|
|||||||
let(:user) { Factory.build(:user) }
|
let(:user) { Factory.build(:user) }
|
||||||
|
|
||||||
it { should be_valid }
|
it { should be_valid }
|
||||||
|
it { should have_many :playlists }
|
||||||
it { should validate_presence_of :email }
|
it { should validate_presence_of :email }
|
||||||
it { should validate_presence_of :password }
|
it { should validate_presence_of :password }
|
||||||
it { should validate_presence_of :password_hash }
|
it { should validate_presence_of :password_hash }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user