* fixing more tests

This commit is contained in:
Seth Call 2014-01-06 22:15:02 +00:00
parent 6aba436781
commit 050af95b56
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module JamRuby
# If this is the only copy, destroy the entire recording. Otherwise, just destroy this claimed_recording
if recording.claimed_recordings.count == 1
recording.discard
recording.destroy
else
self.destroy
end

View File

@ -69,6 +69,7 @@ describe Recording do
it "should be able to start, stop then start a recording again for the same music session" do
@recording = Recording.start(@music_session, @user)
@recording.stop
@recording.keep(@user)
@recording2 = Recording.start(@music_session, @user)
@music_session.recordings.exists?(@recording2).should be_true
end