diff options
author | Benoit Daloze <[email protected]> | 2024-02-12 10:56:33 +0100 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2024-02-12 10:56:33 +0100 |
commit | b19d2409be0b7bac65e6e54cfb3bedc61419ec01 (patch) | |
tree | 9046a7aea28aa043053acc473646b40828ec3736 /spec/ruby/library/csv/liberal_parsing_spec.rb | |
parent | 90a746d246d51d105d7f3e0d1c2ddf7994dd2d4b (diff) |
Update to ruby/spec@ce834ad
Diffstat (limited to 'spec/ruby/library/csv/liberal_parsing_spec.rb')
-rw-r--r-- | spec/ruby/library/csv/liberal_parsing_spec.rb | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/spec/ruby/library/csv/liberal_parsing_spec.rb b/spec/ruby/library/csv/liberal_parsing_spec.rb index d344229d5b..9878658027 100644 --- a/spec/ruby/library/csv/liberal_parsing_spec.rb +++ b/spec/ruby/library/csv/liberal_parsing_spec.rb @@ -1,22 +1,19 @@ require_relative '../../spec_helper' +require 'csv' -ruby_version_is ""..."3.4" do - require 'csv' - - describe "CSV#liberal_parsing?" do - it "returns true if illegal input is handled" do - csv = CSV.new("", liberal_parsing: true) - csv.should.liberal_parsing? - end +describe "CSV#liberal_parsing?" do + it "returns true if illegal input is handled" do + csv = CSV.new("", liberal_parsing: true) + csv.should.liberal_parsing? + end - it "returns false if illegal input is not handled" do - csv = CSV.new("", liberal_parsing: false) - csv.should_not.liberal_parsing? - end + it "returns false if illegal input is not handled" do + csv = CSV.new("", liberal_parsing: false) + csv.should_not.liberal_parsing? + end - it "returns false by default" do - csv = CSV.new("") - csv.should_not.liberal_parsing? - end + it "returns false by default" do + csv = CSV.new("") + csv.should_not.liberal_parsing? end end |