Permalink
Browse files

Back to 100% code coverage

  • Loading branch information...
1 parent 722ce5b commit febdedf3906ac74245cc50d0f87f0f6d57ab13ea @jeremyevans committed Dec 4, 2008
Showing with 12 additions and 0 deletions.
  1. +11 −0 spec/sequel_core/database_spec.rb
  2. +1 −0 spec/sequel_core/schema_spec.rb
@@ -114,6 +114,17 @@
end
end
+context "Database#disconnect" do
+ specify "should call pool.disconnect" do
+ d = Sequel::Database.new
+ p = d.pool
+ a = 1
+ p.meta_def(:disconnect){a += 1}
+ d.disconnect.should == 2
+ a.should == 2
+ end
+end
+
context "Database#connect" do
specify "should raise Sequel::Error::NotImplemented" do
proc {Sequel::Database.new.connect}.should raise_error(NotImplementedError)
@@ -710,6 +710,7 @@
@db.schema(:tinyint).first.last[:type].should == :boolean
Sequel.convert_tinyint_to_bool = false
@db.schema(:tinyint, :reload=>true).first.last[:type].should == :integer
+ @db.schema(:interval).first.last[:type].should == :interval
@db.schema(:int).first.last[:type].should == :integer
@db.schema(:integer).first.last[:type].should == :integer
@db.schema(:bigint).first.last[:type].should == :integer

0 comments on commit febdedf

Please sign in to comment.