Implement tracks/{show,listen}

This commit is contained in:
Thibault Jouan
2011-07-13 18:34:41 +00:00
parent 3e7f4a7168
commit 34b38b77cf
12 changed files with 142 additions and 26 deletions

18
spec/models/track_spec.rb Normal file
View 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