spec/integration/timezone_test.rb in sequel-3.37.0 vs spec/integration/timezone_test.rb in sequel-3.38.0

- old
+ new

@@ -56,11 +56,11 @@ Sequel.database_timezone = nil @db.timezone = :local test_timezone end - cspecify "should support using UTC for both database storage and for application", [:swift], [:do, :mysql], [:do, :postgres], [:oracle] do + cspecify "should support using UTC for both database storage and for application", [:do, :mysql], [:do, :postgres], [:oracle] do Sequel.default_timezone = :utc test_timezone Sequel.database_timezone = :local @db.timezone = :utc test_timezone @@ -77,10 +77,10 @@ specify "should allow overriding the database_timezone on a per-database basis" do Sequel.database_timezone = :utc @db.timezone = :local t = Time.now @db[:t].insert(t) - s = @db[:t].get(:t.cast(String)) + s = @db[:t].get(Sequel.cast(:t, String)) if o = Date._parse(s)[:offset] o.should == t.utc_offset end end end