module RSpecApi::Resource
Provides actions and expectations method to RSpec Example groups, useful to describe the endpoints and expectations of a web API resource.
To have these matchers available inside of an RSpec ‘describe` block, include that block inside a block with the `:rspec_api` metadata, or explicitly include the RSpecApi::Resource
module.
@example Tag a ‘describe` block as `:rspec_api`:
describe "Artists", rspec_api: true do ... # here you can write `get`, `has_attribute`, `host`, etc. end
@example Explicitly include the RSpecApi::Resource
module
describe "Artists" do include RSpecApi::Resource ... # here you can write `get`, `has_attribute`, `host`, etc. end