* fixing more tests
This commit is contained in:
parent
6aba436781
commit
050af95b56
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue