Sha256: 0efa2815c6a7fd05124b486a01cdd66ee5bf9c93bbf74a11242e9cff2e6c3b40
Contents?: true
Size: 588 Bytes
Versions: 3
Compression:
Stored size: 588 Bytes
Contents
require "test_helper" class TestPostgresql < Minitest::Test include TestGroupdate def setup User.establish_connection :adapter => "postgresql", :database => "groupdate_test" end def time_key(key) if RUBY_PLATFORM == "java" key.utc.strftime("%Y-%m-%d %H:%M:%S%z")[0..-3] else if ActiveRecord::VERSION::MAJOR == 3 key.utc.strftime("%Y-%m-%d %H:%M:%S+00") else key end end end def number_key(key) if RUBY_PLATFORM != "java" and ActiveRecord::VERSION::MAJOR == 3 key.to_s else key end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
groupdate-1.0.3 | test/postgresql_test.rb |
groupdate-1.0.2 | test/postgresql_test.rb |
groupdate-1.0.1 | test/postgresql_test.rb |