Module: RSpecApi::Matchers::Sort
- Included in:
- RSpecApi::Matchers
- Defined in:
- lib/rspec-api/matchers/sort/matcher.rb,
lib/rspec-api/matchers/sort/be_sorted.rb
Defined Under Namespace
Classes: Matcher
Instance Method Summary collapse
-
#be_sorted(options = {}) ⇒ Object
Passes if the response body is a non-empty sorted JSON collection.
Instance Method Details
#be_sorted(options = {}) ⇒ Object
Passes if the response body is a non-empty sorted JSON collection
For more examples check be_sorted_spec.rb.
15 16 17 |
# File 'lib/rspec-api/matchers/sort/be_sorted.rb', line 15 def be_sorted( = {}) RSpecApi::Matchers::Sort::Matcher.new end |