VRFS-758 fix unit test - still need to clean up message
This commit is contained in:
parent
9341b077e3
commit
0517ae9ba3
|
|
@ -27,8 +27,7 @@ class ApiJoinRequestsController < ApiController
|
|||
|
||||
if @join_request.errors.any?
|
||||
response.status = :unprocessable_entity
|
||||
respond_with "You cannot join the session at this time."
|
||||
# respond_with @join_request
|
||||
respond_with @join_request
|
||||
else
|
||||
# send notification
|
||||
Notification.send_join_request(music_session, @join_request, text)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ describe "Join Request API", :type => :api do
|
|||
end
|
||||
|
||||
it "can't create duplicate join_request" do
|
||||
pending
|
||||
login(other)
|
||||
|
||||
post '/api/join_requests.json', { :music_session => user.music_sessions[0].id, :text => "lemme in" }.to_json, "CONTENT_TYPE" => 'application/json'
|
||||
|
|
|
|||
Loading…
Reference in New Issue