diff options
Diffstat (limited to 'spec/ruby/library/matrix/new_spec.rb')
| -rw-r--r-- | spec/ruby/library/matrix/new_spec.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/ruby/library/matrix/new_spec.rb b/spec/ruby/library/matrix/new_spec.rb index 4be2e17116..bde9d9f4c8 100644 --- a/spec/ruby/library/matrix/new_spec.rb +++ b/spec/ruby/library/matrix/new_spec.rb @@ -1,11 +1,8 @@ require_relative '../../spec_helper' +require 'matrix' -ruby_version_is ""..."3.1" do - require 'matrix' - - describe "Matrix.new" do - it "is private" do - Matrix.should have_private_method(:new) - end +describe "Matrix.new" do + it "is private" do + Matrix.private_methods(false).should.include?(:new) end end |
