Permalink
Browse files

Add failing spec for track.catalogue to include duration field.

  • Loading branch information...
1 parent c5fd507 commit ddd50654c45cd0b7211a68d27c9a6aa0cd741f26 @nelstrom committed Feb 17, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 spec/track_spec.rb
View
@@ -2,7 +2,7 @@
describe 'track' do
before(:each) do
- @track = Track.new(:name => 'test track')
+ @track = Track.new(:name => 'test track', :duration => 100)
end
specify 'should be valid' do
@@ -25,5 +25,8 @@
specify 'returns a hash with :model set "Track"' do
@track.catalogue[:model].should == "Track"
end
+ specify 'returns a hash with :duration field' do
+ @track.catalogue[:duration].should == 100
+ end
end
end

0 comments on commit ddd5065

Please sign in to comment.