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