module RSpecApi::Matchers
Provides RSpec Matchers
for RESTful web APIs.
To have these matchers available inside of an RSpec ‘describe` block, tag that block with the `:rspec_api` metadata, or explicitly include the RSpecApi::Matchers
module inside the example group
@example Tag a ‘describe` block as `:rspec_api`:
describe "Artists", rspec_api: true do ... # here you can write `expect(response).to have_status :ok`, etc. end
@example Explicitly include the RSpecApi::Matchers
module
describe "Artists" do include RSpecApi::Matchers ... # here you can write `expect(response).to have_status :ok`, etc. end
Constants
- VERSION