Class: InfinumJsonApiSetup::RSpec::Matchers::HaveResourceCountOf
- Inherits:
-
JsonBodyMatcher
- Object
- JsonBodyMatcher
- InfinumJsonApiSetup::RSpec::Matchers::HaveResourceCountOf
- Defined in:
- lib/infinum_json_api_setup/rspec/matchers/have_resource_count_of.rb
Instance Method Summary collapse
-
#initialize(expected_count) ⇒ HaveResourceCountOf
constructor
A new instance of HaveResourceCountOf.
Methods inherited from JsonBodyMatcher
Constructor Details
#initialize(expected_count) ⇒ HaveResourceCountOf
Returns a new instance of HaveResourceCountOf.
12 13 14 15 16 |
# File 'lib/infinum_json_api_setup/rspec/matchers/have_resource_count_of.rb', line 12 def initialize(expected_count) super(Matchers::Util::BodyParser.new('data')) @expected_count = expected_count end |