diff options
Diffstat (limited to 'spec/ruby/library/matrix/coerce_spec.rb')
| -rw-r--r-- | spec/ruby/library/matrix/coerce_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/ruby/library/matrix/coerce_spec.rb b/spec/ruby/library/matrix/coerce_spec.rb index 4022f00236..aa3a32765a 100644 --- a/spec/ruby/library/matrix/coerce_spec.rb +++ b/spec/ruby/library/matrix/coerce_spec.rb @@ -1,8 +1,11 @@ require_relative '../../spec_helper' -require 'matrix' -describe "Matrix#coerce" do - it "allows the division of integer by a Matrix " do - (1/Matrix[[0,1],[-1,0]]).should == Matrix[[0,-1],[1,0]] +ruby_version_is ""..."3.1" do + require 'matrix' + + describe "Matrix#coerce" do + it "allows the division of integer by a Matrix " do + (1/Matrix[[0,1],[-1,0]]).should == Matrix[[0,-1],[1,0]] + end end end |
