module RSpecApi::Expectations::Response::Body::Filter
Public Instance Methods
expect_a_filtered(response, expectations = {})
click to toggle source
# File lib/rspec-api/expectations/body/filter.rb, line 8 def expect_a_filtered(response, expectations = {}) include RSpecApi::Matchers if should_check_filtered(response, expectations) it { expect(response).to be_filtered expectations[:filter] } end end
Private Instance Methods
should_check_filtered(response, expectations)
click to toggle source
# File lib/rspec-api/expectations/body/filter.rb, line 18 def should_check_filtered(response, expectations) expectations.key?(:filter) end