Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
lynndylanhurley committed Oct 27, 2015
1 parent bfb9ddc commit 728df21
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -763,13 +763,15 @@ class DeviseTokenAuth::RegistrationsControllerTest < ActionDispatch::Integration
end

test "Mang should be destroyed" do
@resource.skip_confirmation!
@resource.save!
@auth_headers = @resource.create_new_auth_token
@client_id = @auth_headers['client']

# ensure request is not treated as batch request
age_token(@resource, @client_id)

delete "/mangs", {}, @auth_headers
xhr :delete, "/mangs", {}, @auth_headers

assert_equal 200, response.status
refute Mang.where(id: @resource.id).first
Expand Down

0 comments on commit 728df21

Please sign in to comment.