* fixing failing test

This commit is contained in:
Seth Call 2014-01-06 21:51:48 +00:00
parent 8cd679bea1
commit 6aba436781
1 changed files with 7 additions and 1 deletions

View File

@ -130,12 +130,18 @@ module JamRuby
self.claimed_recordings << claimed_recording
if claimed_recording.save
discard(user)
keep(user)
end
claimed_recording
end
# the user votes to keep their tracks for this recording
def keep(user)
recorded_tracks_for_user(user).update_all(:discard => false)
end
# the user votes to discard their tracks for this recording
def discard(user)
recorded_tracks_for_user(user).update_all(:discard => true)