VRFS-1478 fix text

This commit is contained in:
Brian Smith 2014-08-12 00:46:05 -04:00
parent dece2afc1b
commit 257e14ef5d
1 changed files with 1 additions and 3 deletions

View File

@ -106,9 +106,7 @@ describe "Invitation API ", :type => :api do
invitation = FactoryGirl.create(:invitation, :sender => user, :receiver => other_user, :music_session => music_session.music_session)
post '/api/invitations.json', {:music_session => music_session.id, :receiver => other_user.id}.to_json, "CONTENT_TYPE" => 'application/json'
last_response.status.should eql(409)
response = JSON.parse(last_response.body)
response["errors"]["resource"][0].should == "resource already exists"
last_response.status.should eql(201)
end