Skip to content

Commit

Permalink
Update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamaziz15 committed Dec 4, 2017
1 parent 923493c commit 67f0cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def invite_member
organization_id: @organization.id
)

if invite.save
if invite.persisted?
@user = user.confirmed? ? invite : user.reload
else
render json: invite.errors, status: :bad_request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def partial_hash_for_arrears(arrear)
# Track the api call
@api_call = false
stub = -> { @api_call = true; from_api(org_invite) }
api_stub_for(post: "/organizations/#{organization.id}/org_invites", response: stub)
api_stub_for(post: "/org_invites", response: stub)
end

let(:params) { FactoryGirl.attributes_for(:user) }
Expand Down

0 comments on commit 67f0cf2

Please sign in to comment.