summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/rectangular_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/matrix/rectangular_spec.rb')
-rw-r--r--spec/ruby/library/matrix/rectangular_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/ruby/library/matrix/rectangular_spec.rb b/spec/ruby/library/matrix/rectangular_spec.rb
index a235fac640..1fc2e0e60d 100644
--- a/spec/ruby/library/matrix/rectangular_spec.rb
+++ b/spec/ruby/library/matrix/rectangular_spec.rb
@@ -1,6 +1,9 @@
require_relative '../../spec_helper'
-require_relative 'shared/rectangular'
-describe "Matrix#rectangular" do
- it_behaves_like :matrix_rectangular, :rectangular
+ruby_version_is ""..."3.1" do
+ require_relative 'shared/rectangular'
+
+ describe "Matrix#rectangular" do
+ it_behaves_like :matrix_rectangular, :rectangular
+ end
end