module RSpecApi::Expectations::Response::Custom
Creates an example group for custom expectations passed in a block
Public Instance Methods
expect_custom(response, prefix_params, &block)
click to toggle source
# 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