spec/command_spec.rb in data_objects-0.9.5 vs spec/command_spec.rb in data_objects-0.9.6
- old
+ new
@@ -4,9 +4,13 @@
before do
@connection = DataObjects::Connection.new('mock://localhost')
@command = DataObjects::Command.new(@connection, 'SQL STRING')
end
+ after do
+ @connection.close
+ end
+
it "should assign the connection object to @connection" do
@command.instance_variable_get("@connection").should == @connection
end
it "should assign the sql text to @text" do