* VRFS-15; making musicians hang off of root uri take 2; I had a bad test that was a false positive
This commit is contained in:
parent
ee481274bd
commit
5599aa9405
|
|
@ -45,8 +45,7 @@ class ApiMusicSessionsController < ApplicationController
|
|||
end
|
||||
|
||||
def client_delete
|
||||
@music_session = MusicSession.find(params[:id])
|
||||
@music_session_client = MusicSessionClient.find_by_user_id_and_music_session_id(current_user, @music_session)
|
||||
@music_session_client = MusicSessionClient.find(params[:id])
|
||||
@music_session_client.delete
|
||||
|
||||
respond_with @music_session_client, responder: ApiResponder
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ describe "Music Session API ", :type => :api do
|
|||
musician["ip_address"].should == "1.2.3.4"
|
||||
|
||||
# now delete that musician
|
||||
delete "/api/musicians/#{music_session["id"]}.json", '', "CONTENT_TYPE" => 'application/json'
|
||||
delete "/api/musicians/#{musician["id"]}.json", '', "CONTENT_TYPE" => 'application/json'
|
||||
last_response.status.should eql(204)
|
||||
|
||||
# re-fetch the session now that there is not a musician
|
||||
|
|
|
|||
Loading…
Reference in New Issue