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 object has a non-empty sorted JSON collection in the body.
Instance Method Details
#be_sorted(options = {}) ⇒ Object
Passes if the object has a non-empty sorted JSON collection in the body.
Sorting is ascending unless verse.to_s
is ‘desc’ or ‘descending’
28 29 30 |
# File 'lib/rspec-api/matchers/sort/be_sorted.rb', line 28 def be_sorted( = {}) RSpecApi::Matchers::Sort::Matcher.new end |