Module: RSpecApi::Expectations::Response::Custom
- Included in:
- RSpecApi::Expectations::Response
- Defined in:
- lib/rspec-api/expectations/custom.rb
Overview
Creates an example group for custom expectations passed in a block
Instance Method Summary collapse
Instance Method Details
#expect_custom(response, prefix_params, &block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rspec-api/expectations/custom.rb', line 6 def expect_custom(response, prefix_params, &block) context 'matches custom expectations' do include RSpecApi::Matchers it { instance_exec response, prefix_params, &block } end if block_given? end |