10 lines
283 B
Ruby
10 lines
283 B
Ruby
describe Playlist do
|
|
subject { playlist }
|
|
let(:playlist) { FactoryGirl.build(:playlist) }
|
|
|
|
it { is_expected.to be_valid }
|
|
it { is_expected.to belong_to :user }
|
|
it { is_expected.to validate_presence_of :user }
|
|
it { is_expected.to validate_presence_of :name }
|
|
end
|