Module: RSpecApi::Expectations::Response::Body::Attributes
- Defined in:
- lib/rspec-api/expectations/body/attributes.rb
Instance Method Summary collapse
Instance Method Details
#expect_attributes(response, expectations = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rspec-api/expectations/body/attributes.rb', line 8 def expect_attributes(response, expectations = {}) include RSpecApi::Matchers if should_check_attributes(response, expectations) it { expect(response).to have_attributes expectations[:attributes] } end end |