Module: RSpecApi::Expectations::Response::Body::Jsonp
- Defined in:
- lib/rspec-api/expectations/body/jsonp.rb
Instance Method Summary collapse
Instance Method Details
#expect_a_callback_wrapped(response, expectations = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rspec-api/expectations/body/jsonp.rb', line 8 def expect_a_callback_wrapped(response, expectations = {}) include RSpecApi::Matchers if should_check_callback_wrapped(response, expectations) it { expect(response).to be_wrapped_in_callback expectations[:callback] } end end |