Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Anthony Davis 2013-10-16 23:53:07 -05:00
commit a641496261
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'