Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarraz committed Aug 24, 2024
1 parent d55995b commit f1da6dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/redis/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def test_call_with_arguments
assert_equal result, "OK"
end

def test_with_block
result = r.call("INFO") { |l| l.lines(chomp: true).grep(/uptime_in_days/)[0] }
assert_equal result, "uptime_in_days:0"
end

def test_call_integers
result = r.call("INCR", "foo")
assert_equal result, 1
Expand Down

0 comments on commit f1da6dc

Please sign in to comment.