sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
Fixed deadlocks for postgres by ensuring all connections are properly 
closed. Added script for testing timezones.
Wed Jul 02 08:25:35 -0700 2008
commit  3b677e34b3a015f27d9e5cbfef923ce1ff5f3250
tree    f2e742f2e541fec17ad28792b394ce94f0445710
parent  a0dd4cf303cc02b5e169f4abfb560fc4d286b843
...
21
22
23
 
24
25
26
...
31
32
33
 
 
 
 
34
35
36
...
62
63
64
 
 
 
 
65
66
67
...
21
22
23
24
25
26
27
...
32
33
34
35
36
37
38
39
40
41
...
67
68
69
70
71
72
73
74
75
76
0
@@ -21,6 +21,7 @@ describe "DataObjects::Postgres::Connection" do
0
 
0
   it "should connect to the db" do
0
     connection = DataObjects::Connection.new("postgres://localhost/do_test")
0
+ connection.close
0
   end
0
 end
0
 
0
@@ -31,6 +32,10 @@ describe "DataObjects::Postgres::Command" do
0
     @connection = ensure_users_table_and_return_connection
0
   end
0
 
0
+ after :all do
0
+ @connection.close
0
+ end
0
+
0
   it "should create a command" do
0
     @connection.create_command("CREATE TABLE users").should be_a_kind_of(DataObjects::Postgres::Command)
0
   end
0
@@ -62,6 +67,10 @@ describe "DataObjects::Postgres::Result" do
0
     @connection = ensure_users_table_and_return_connection
0
   end
0
 
0
+ after :all do
0
+ @connection.close
0
+ end
0
+
0
   it "should raise errors on bad queries" do
0
     command = @connection.create_command("INSER INTO users (name) VALUES ('Test')")
0
     lambda { command.execute_non_query }.should raise_error

Comments

    No one has commented yet.