scube-server/spec/models/playlist_spec.rb
2011-07-25 22:56:30 +00:00

19 lines
309 B
Ruby

require 'spec_helper'
describe Playlist do
subject { playlist }
let(:playlist) { FactoryGirl.build(:playlist) }
context 'with valid attributes' do
it { should be_valid }
end
context 'when name empty' do
before do
playlist.name = ''
end
it { should_not be_valid }
end
end