Skip to content

Commit

Permalink
Adding persistent ID to Track.
Browse files Browse the repository at this point in the history
  • Loading branch information
ymendel committed Oct 8, 2008
1 parent 4f01134 commit 9ffc273
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pj/track.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module PJ
class Track
attr_accessor :track_id
attr_accessor :track_id, :persistent_id
end
end
10 changes: 10 additions & 0 deletions spec/track_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,14 @@
@track.track_id = tid
@track.track_id.should == tid
end

it 'should have a persistent ID' do
@track.should respond_to(:persistent_id)
end

it 'should allow setting the persistent ID' do
pid = 'EA0123HA03'
@track.persistent_id = pid
@track.persistent_id.should == pid
end
end

0 comments on commit 9ffc273

Please sign in to comment.