VRFS-756 broken test fix

This commit is contained in:
Jonathan Kolyer 2014-03-04 06:23:29 +00:00
parent 490b8ad06c
commit 82722d2cbc
1 changed files with 2 additions and 2 deletions

View File

@ -147,8 +147,8 @@ describe "User Progression", :type => :api do
it "invites user" do
user.first_invited_at.should be_nil
post '/api/invited_users.json', {:email => 'tester@jamkazam.com', :note => "please join"}.to_json, "CONTENT_TYPE" => 'application/json'
last_response.status.should eql(201)
post '/api/invited_users.json', {:emails => ['tester@jamkazam.com'], :note => "please join"}.to_json, "CONTENT_TYPE" => 'application/json'
last_response.status.should eql(200)
user.reload
user.first_invited_at.should_not be_nil
end