Implement tracks/{show,listen}
This commit is contained in:
18
spec/models/track_spec.rb
Normal file
18
spec/models/track_spec.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Track do
|
||||
subject { track }
|
||||
let(:track) { Track.new :name => 'Mega song' }
|
||||
|
||||
context 'with valid attributes' do
|
||||
it { should be_valid }
|
||||
end
|
||||
|
||||
context 'when name empty' do
|
||||
before do
|
||||
track.name = ''
|
||||
end
|
||||
|
||||
it { should_not be_valid }
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user