Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix connection pool spec issue on ruby 1.9

  • Loading branch information...
commit 08c82997548dd30ca57d9e1664ba0be223dae4cc 1 parent a7ff53f
Jeremy Evans authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/sequel_core/connection_pool_spec.rb
8 spec/sequel_core/connection_pool_spec.rb
View
@@ -351,7 +351,7 @@ def value
@pool.size.should == 0
@pool.hold do |c|
c.should == "default1"
- @pool.allocated.should == {Thread.current, "default1"}
+ @pool.allocated.should == {Thread.current=>"default1"}
end
@pool.available_connections.should == ["default1"]
@pool.size.should == 1
@@ -362,7 +362,7 @@ def value
@pool.size(:read_only).should == 0
@pool.hold(:read_only) do |c|
c.should == "read_only1"
- @pool.allocated(:read_only).should == {Thread.current, "read_only1"}
+ @pool.allocated(:read_only).should == {Thread.current=>"read_only1"}
end
@pool.available_connections(:read_only).should == ["read_only1"]
@pool.size(:read_only).should == 1
@@ -372,14 +372,14 @@ def value
specify "#hold should only yield connections for the server requested" do
@pool.hold(:read_only) do |c|
c.should == "read_only1"
- @pool.allocated(:read_only).should == {Thread.current, "read_only1"}
+ @pool.allocated(:read_only).should == {Thread.current=>"read_only1"}
@pool.hold do |d|
d.should == "default1"
@pool.hold do |e|
e.should == d
@pool.hold(:read_only){|b| b.should == c}
end
- @pool.allocated.should == {Thread.current, "default1"}
+ @pool.allocated.should == {Thread.current=>"default1"}
end
end
@invoked_counts.should == {:read_only=>1, :default=>1}
Please sign in to comment.
Something went wrong with that request. Please try again.