VRFS-1478 fix text
This commit is contained in:
parent
dece2afc1b
commit
257e14ef5d
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue