VRFS-758 fix unit test - still need to clean up message

This commit is contained in:
Brian Smith 2013-10-16 21:39:00 -04:00
parent 9341b077e3
commit 0517ae9ba3
2 changed files with 1 additions and 3 deletions

View File

@ -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)

View File

@ -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'