Skip to content

Commit

Permalink
test: Drop tests targeting ruby before 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Empact committed May 21, 2024
1 parent d7b6211 commit d35e97b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
13 changes: 2 additions & 11 deletions spec/definition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,8 @@ def self.from_xml(val)
expect(@definition.blocks.first['0.3']).to eq(BigDecimal("0.3"))
end

# Ruby behavior of BigDecimal changed in 2.4, this test is not valid on older rubies
if RUBY_VERSION >= "2.4"
it "should raise on non-decimal values" do
expect { @definition.blocks.first['junk 11'] }.to raise_error(ArgumentError)
end
end

if RUBY_VERSION < "2.6"
it "should extract what it can" do
expect(@definition.blocks.first['11sttf']).to eql(BigDecimal("11.0"))
end
it "should raise on non-decimal values" do
expect { @definition.blocks.first['junk 11'] }.to raise_error(ArgumentError)
end

context "when passed an array" do
Expand Down
24 changes: 0 additions & 24 deletions spec/regression_spec.rb

This file was deleted.

0 comments on commit d35e97b

Please sign in to comment.