File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1616 - { ruby: '2.7' }
1717 - { ruby: '3.0' }
1818 - { ruby: '3.1' }
19+ - { ruby: '3.2' }
1920 - { ruby: head, allow-failure: true }
2021 - { ruby: jruby-9.3 }
2122 - { ruby: jruby-head, allow-failure: true }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222
2323 context "when the list data is read as US-ASCII" do
2424 let ( :encoding ) { Encoding ::US_ASCII }
25+ # https://github.com/ruby/ruby/commit/571d21fd4a2e877f49b4ff918832bda9a5e8f91c
26+ let ( :expected_error ) do
27+ if RUBY_VERSION >= "3.2.0"
28+ Encoding ::CompatibilityError
29+ else
30+ ArgumentError
31+ end
32+ end
2533
2634 it "parsing the data will fail" do
2735 expect { subject } .
28- to raise_error ( ArgumentError , "invalid byte sequence in US-ASCII" )
36+ to raise_error ( expected_error , "invalid byte sequence in US-ASCII" )
2937 end
3038 end
3139 end
You can’t perform that action at this time.
0 commit comments