File tree Expand file tree Collapse file tree 8 files changed +32
-31
lines changed
Expand file tree Collapse file tree 8 files changed +32
-31
lines changed Original file line number Diff line number Diff line change 99 strategy :
1010 matrix :
1111 ruby :
12- - ' 3.0'
1312 - ' 3.1'
1413 - ' 3.2'
1514 - ' 3.3'
16-
15+ - ' 3.4 '
1716 steps :
1817 - uses : actions/checkout@v3
1918 - name : Set up Ruby
Original file line number Diff line number Diff line change 33 - rubocop-rspec
44
55AllCops :
6- TargetRubyVersion : 3.0
6+ TargetRubyVersion : 3.1
77 NewCops : enable
88
99Layout/LineLength :
Original file line number Diff line number Diff line change 1- ## [ Unreleased ]
1+ ## [ 0.2.0 ] - 2025-03-06
22
3- - Drop ruby 2.7 support
3+ - Drop Ruby 3.0 support
44
55## [ 0.1.0] - 2022-12-09
66
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- capybara_mock (0.1 .0 )
4+ capybara_mock (0.2 .0 )
55 rack (>= 2.2.0 )
66
77GEM
88 remote: https://rubygems.org/
99 specs:
10- addressable (2.8.6 )
11- public_suffix (>= 2.0.2 , < 6 .0 )
10+ addressable (2.8.7 )
11+ public_suffix (>= 2.0.2 , < 7 .0 )
1212 ast (2.4.2 )
13+ base64 (0.2.0 )
1314 capybara (3.40.0 )
1415 addressable
1516 matrix
1920 rack-test (>= 0.6.3 )
2021 regexp_parser (>= 1.5 , < 3.0 )
2122 xpath (~> 3.2 )
22- concurrent-ruby (1.2.3 )
23- cuprite (0.15 )
23+ concurrent-ruby (1.3.5 )
24+ cuprite (0.15.1 )
2425 capybara (~> 3.0 )
25- ferrum (~> 0.14 .0 )
26+ ferrum (~> 0.15 .0 )
2627 diff-lcs (1.5.1 )
27- ferrum (0.14 )
28+ ferrum (0.15 )
2829 addressable (~> 2.5 )
2930 concurrent-ruby (~> 1.1 )
3031 webrick (~> 1.7 )
31- websocket-driver (>= 0.6 , < 0.8 )
32+ websocket-driver (~> 0.7 )
3233 json (2.7.1 )
3334 language_server-protocol (3.17.0.3 )
3435 matrix (0.4.2 )
3536 mini_mime (1.1.5 )
36- mini_portile2 (2.8.6 )
37- nokogiri (1.16.5 )
37+ mini_portile2 (2.8.8 )
38+ nokogiri (1.18.3 )
3839 mini_portile2 (~> 2.8.2 )
3940 racc (~> 1.4 )
4041 parallel (1.24.0 )
4142 parser (3.3.0.5 )
4243 ast (~> 2.4.1 )
4344 racc
4445 prism (0.24.0 )
45- public_suffix (5 .0.4 )
46- racc (1.7.3 )
46+ public_suffix (6 .0.1 )
47+ racc (1.8.1 )
4748 rack (2.2.12 )
48- rack-test (2.1 .0 )
49+ rack-test (2.2 .0 )
4950 rack (>= 1.3 )
5051 rainbow (3.1.1 )
5152 rake (13.1.0 )
52- regexp_parser (2.9 .0 )
53+ regexp_parser (2.10 .0 )
5354 rexml (3.3.9 )
5455 rspec (3.13.0 )
5556 rspec-core (~> 3.13.0 )
9091 rubocop-factory_bot (~> 2.22 )
9192 ruby-progressbar (1.13.0 )
9293 unicode-display_width (2.5.0 )
93- webrick (1.8.2 )
94- websocket-driver (0.7.6 )
94+ webrick (1.9.1 )
95+ websocket-driver (0.7.7 )
96+ base64
9597 websocket-extensions (>= 0.1.0 )
9698 websocket-extensions (0.1.5 )
9799 xpath (3.2.0 )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212 spec . description = 'CapybaraMock'
1313 spec . homepage = 'https://github.com/railsware/capybara_mock'
1414 spec . license = 'MIT'
15- spec . required_ruby_version = '>= 3.0 .0'
15+ spec . required_ruby_version = '>= 3.1 .0'
1616
1717 spec . metadata [ 'homepage_uri' ] = spec . homepage
1818 spec . metadata [ 'source_code_uri' ] = 'https://github.com/railsware/capybara_mock'
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 11# frozen_string_literal: true
22
33module CapybaraMock
4- VERSION = '0.1 .0'
4+ VERSION = '0.2 .0'
55end
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