Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Back to 100% code coverage

  • Loading branch information...
commit febdedf3906ac74245cc50d0f87f0f6d57ab13ea 1 parent 722ce5b
@jeremyevans authored
View
11 spec/sequel_core/database_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)
View
1  spec/sequel_core/schema_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.