Sha256: 0da7ad3df122e761cbb509d83ab544955d4d4c54542fc327be968ae6689fbcae
Contents?: true
Size: 479 Bytes
Versions: 22
Compression:
Stored size: 479 Bytes
Contents
require 'rails_helper' describe LHC do context 'interceptor' do before(:each) do class SomeInterceptor < LHC::Interceptor def after_request; end end LHC.configure { |c| c.interceptors = [SomeInterceptor] } end it 'can perform some actions after a request was fired' do expect_any_instance_of(SomeInterceptor).to receive(:after_request) stub_request(:get, 'http://local.ch') LHC.get('http://local.ch') end end end
Version data entries
22 entries across 22 versions & 1 rubygems