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