Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
Make RedSet.score return floats.
Browse files Browse the repository at this point in the history
redis-rb 3.0 returns floats for zscore, so casting it back to a string seems
silly.
  • Loading branch information
oggy committed Jul 19, 2012
1 parent 855b0d0 commit 951f779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/redness/red_set_spec.rb
Expand Up @@ -74,7 +74,7 @@
it "sets the score when one is provided" do
RedSet.add("somekey", 1, :score => lambda { 1000 })

RedSet.score("somekey", 1).should == "1000"
RedSet.score("somekey", 1).should == 1000
end
end

Expand All @@ -93,7 +93,7 @@
it "returns the score of member within key" do
RedSet.add("somekey", 1)

RedSet.score("somekey", 1).should == "0"
RedSet.score("somekey", 1).should == 0
end
end

Expand Down

0 comments on commit 951f779

Please sign in to comment.