ruby-changes:58833
From: Nobuyoshi <ko1@a...>
Date: Tue, 19 Nov 2019 04:39:05 +0900 (JST)
Subject: [ruby-changes:58833] 473e314791 (master): Prefer dedecated assertions
https://git.ruby-lang.org/ruby.git/commit/?id=473e314791 From 473e314791964019e017410fb761b873d61e591c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 13 Nov 2019 15:22:39 +0900 Subject: Prefer dedecated assertions diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb index d6c7bd0..a0875d1 100644 --- a/test/reline/test_reline.rb +++ b/test/reline/test_reline.rb @@ -218,14 +218,14 @@ class Reline::Test < Reline::TestCase https://github.com/ruby/ruby/blob/trunk/test/reline/test_reline.rb#L218 def test_readmultiline # readmultiline is module function - assert_equal(true, Reline.methods.include?(:readmultiline)) - assert_equal(true, Reline.private_instance_methods.include?(:readmultiline)) + assert_include(Reline.methods, :readmultiline) + assert_include(Reline.private_instance_methods, :readmultiline) end def test_readline # readline is module function - assert_equal(true, Reline.methods.include?(:readline)) - assert_equal(true, Reline.private_instance_methods.include?(:readline)) + assert_include(Reline.methods, :readline) + assert_include(Reline.private_instance_methods, :readline) end def test_inner_readline -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/