scube-server/spec/models/playlist_spec.rb
2014-04-01 05:04:27 +00:00

13 lines
325 B
Ruby

require 'spec_helper'
describe Playlist do
subject { playlist }
let(:playlist) { FactoryGirl.build(:playlist) }
it { should be_valid }
it { should belong_to :user }
it { should validate_presence_of :user }
it { should validate_presence_of :name }
it { should_not allow_mass_assignment_of :user }
end