Skip to content

Commit

Permalink
Support 2.6 info output
Browse files Browse the repository at this point in the history
  • Loading branch information
mloughran committed Dec 11, 2012
1 parent 2090aed commit 3431543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/em-hiredis/client.rb
Expand Up @@ -15,7 +15,7 @@ def info
info = {}
response.each_line do |line|
key, value = line.split(":", 2)
info[key.to_sym] = value.chomp
info[key.to_sym] = value.chomp if value
end
df.succeed(info)
}
Expand Down
2 changes: 1 addition & 1 deletion spec/redis_commands_spec.rb
Expand Up @@ -611,7 +611,7 @@
it "provides info (INFO)" do
connect do |redis|
redis.info do |r|
[:last_save_time, :redis_version, :total_connections_received, :connected_clients, :total_commands_processed, :connected_slaves, :uptime_in_seconds, :used_memory, :uptime_in_days, :changes_since_last_save].each do |x|
[:redis_version, :total_connections_received, :connected_clients, :total_commands_processed, :connected_slaves, :uptime_in_seconds, :used_memory, :uptime_in_days].each do |x|
r.keys.include?(x).should == true
end
done
Expand Down

0 comments on commit 3431543

Please sign in to comment.