diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-24 12:04:08 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-24 12:04:08 +0900 |
| commit | 4d249c28d9b736882ea26fd1494199733d4df68e (patch) | |
| tree | 37ef5326232e48f4e8173e9051ce67fe61618afb /mrbgems/mruby-method | |
| parent | f46b4056f844de8b182da070c301d2043bb1dac5 (diff) | |
| download | mruby-4d249c28d9b736882ea26fd1494199733d4df68e.tar.gz mruby-4d249c28d9b736882ea26fd1494199733d4df68e.zip | |
Skip tests that use `Float` inside; ref #5421
Diffstat (limited to 'mrbgems/mruby-method')
| -rw-r--r-- | mrbgems/mruby-method/test/method.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-method/test/method.rb b/mrbgems/mruby-method/test/method.rb index a7db20031..675277726 100644 --- a/mrbgems/mruby-method/test/method.rb +++ b/mrbgems/mruby-method/test/method.rb @@ -406,8 +406,9 @@ end assert 'UnboundMethod#==' do assert_false(Integer.instance_method(:+) == Integer.instance_method(:-)) assert_true(Integer.instance_method(:+) == Integer.instance_method(:+)) - assert_false(Integer.instance_method(:+) == Float.instance_method(:+)) assert_true(UnboundMethod.instance_method(:==) == UnboundMethod.instance_method(:eql?)) + skip unless Object.const_defined?(:Float) + assert_false(Integer.instance_method(:+) == Float.instance_method(:+)) end assert 'UnboundMethod#super_method' do |
