Permalink
Browse files

Use DB 15 in test

  • Loading branch information...
1 parent 4f9c68e commit 9806260f213ed60199ce4f3b391fcbfd48ce7772 @czarneckid czarneckid committed Apr 26, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 spec/leaderboard_spec.rb
  2. +3 −3 spec/reverse_leaderboard_spec.rb
View
@@ -326,8 +326,8 @@
end
it 'should allow you to intersect leaderboards' do
- foo = Leaderboard.new('foo')
- bar = Leaderboard.new('bar')
+ foo = Leaderboard.new('foo', Leaderboard::DEFAULT_LEADERBOARD_REQUEST_OPTIONS, :host => "127.0.0.1", :db => 15)
+ bar = Leaderboard.new('bar', Leaderboard::DEFAULT_LEADERBOARD_REQUEST_OPTIONS, :host => "127.0.0.1", :db => 15)
foo.rank_member('foo_1', 1)
foo.rank_member('foo_2', 2)
@@ -339,7 +339,7 @@
foobar_keys = foo.intersect_leaderboards('foobar', ['bar'], {:aggregate => :max})
foobar_keys.should be(2)
- foobar = Leaderboard.new('foobar')
+ foobar = Leaderboard.new('foobar', Leaderboard::DEFAULT_LEADERBOARD_REQUEST_OPTIONS, :host => "127.0.0.1", :db => 15)
foobar.total_members.should be(2)
first_leader_in_foobar = foobar.leaders(1).first
@@ -190,8 +190,8 @@
end
it 'should allow you to intersect leaderboards' do
- foo = Leaderboard.new('foo')
- bar = Leaderboard.new('bar')
+ foo = Leaderboard.new('foo', Leaderboard::DEFAULT_LEADERBOARD_REQUEST_OPTIONS, :host => "127.0.0.1", :db => 15)
+ bar = Leaderboard.new('bar', Leaderboard::DEFAULT_LEADERBOARD_REQUEST_OPTIONS, :host => "127.0.0.1", :db => 15)
foo.rank_member('foo_1', 1)
foo.rank_member('foo_2', 2)
@@ -203,7 +203,7 @@
foobar_keys = foo.intersect_leaderboards('foobar', ['bar'], {:aggregate => :max})
foobar_keys.should be(2)
- foobar = Leaderboard.new('foobar')
+ foobar = Leaderboard.new('foobar', Leaderboard::DEFAULT_LEADERBOARD_REQUEST_OPTIONS, :host => "127.0.0.1", :db => 15)
foobar.total_members.should be(2)
first_leader_in_foobar = foobar.leaders(1).first

0 comments on commit 9806260

Please sign in to comment.