Permalink
Browse files

Small integration test fix for ruby-sqlite3 1.2.1

  • Loading branch information...
1 parent bfd00c0 commit abd125153b025b6691994a513ed1186456aa9561 @jeremyevans committed Jul 25, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/integration/type_test.rb
@@ -28,7 +28,9 @@ def create_items_table_with_column(name, type)
ds = create_items_table_with_column(:dat, :date)
d = Date.today
ds.insert(:dat => d)
- ds.first[:dat].to_s.should == d.to_s
+ x = ds.first[:dat]
+ x = x.iso8601.to_date if Time === x
+ x.to_s.should == d.to_s
end
specify "should support time type" do

0 comments on commit abd1251

Please sign in to comment.