File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ class << self
6161 # @param method [String]
6262 # @param path [String]
6363 # @return [CapybaraMock::Stub]
64- def stub_path ( method , path , &block )
64+ def stub_path ( method , path , &)
6565 url = File . join ( capybara_session . server . base_url , path )
66- stub_request ( method , url , &block )
66+ stub_request ( method , url , &)
6767 end
6868
6969 # Stub capybara request for current session using url.
Original file line number Diff line number Diff line change 4949 context 'with `.with`' do
5050 subject ( :stub ) do
5151 described_class . new ( :get , 'http://example.com' ) . with (
52- query : query ,
53- headers : headers ,
54- body : body
52+ query :,
53+ headers :,
54+ body :
5555 )
5656 end
5757
6363 {
6464 method : 'GET' ,
6565 url : 'http://example.com' ,
66- query : query ,
67- headers : headers ,
68- body : body
66+ query :,
67+ headers :,
68+ body :
6969 }
7070 end
7171
You can’t perform that action at this time.
0 commit comments