Skip to content

Commit

Permalink
add test for fix in #704
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 18, 2021
1 parent 1b3ab9a commit 28ceab5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/requests/provider_prefixes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,25 @@

expect(last_response.status).to eq(201)
expect(json.dig("data", "id")).not_to be_nil

sleep 2

get "/prefixes?state=unassigned", nil, headers

expect(last_response.status).to eq(200)
expect(json.dig("meta", "total")).to eq(0)


delete "/provider-prefixes/#{provider_prefix.uid}", nil, headers

expect(last_response.status).to eq(204)

sleep 2

get "/prefixes?state=unassigned", nil, headers

expect(last_response.status).to eq(200)
expect(json.dig("meta", "total")).to eq(1)
end
end

Expand Down

0 comments on commit 28ceab5

Please sign in to comment.