Skip to content

Commit

Permalink
Merge pull request #68 from nobu/dedecated-assertions
Browse files Browse the repository at this point in the history
Prefer dedecated assertions
  • Loading branch information
aycabta authored Nov 18, 2019
2 parents d83e79c + 837cc11 commit a7fbe2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/reline/test_reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ def test_editing_mode

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
Expand Down

0 comments on commit a7fbe2f

Please sign in to comment.