Sha256: bde98ffa52c6929bfabfaf2225de3855803e3bb6f087660e0eab29d56aa4a9dd

Contents?: true

Size: 398 Bytes

Versions: 25

Compression:

Stored size: 398 Bytes

Contents

require "cases/helper"
require 'models/topic'

class YamlSerializationTest < ActiveRecord::TestCase
  def test_to_yaml_with_time_with_zone_should_not_raise_exception
    Time.zone = ActiveSupport::TimeZone["Pacific Time (US & Canada)"]
    ActiveRecord::Base.time_zone_aware_attributes = true
    topic = Topic.new(:written_on => DateTime.now)
    assert_nothing_raised { topic.to_yaml }
  end
end

Version data entries

25 entries across 25 versions & 5 rubygems

Version Path
activerecord-2.3.18 test/cases/yaml_serialization_test.rb
activerecord-2.3.17 test/cases/yaml_serialization_test.rb
activerecord-2.3.16 test/cases/yaml_serialization_test.rb
activerecord-2.3.15 test/cases/yaml_serialization_test.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activerecord-2.3.14/test/cases/yaml_serialization_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activerecord-2.3.12/test/cases/yaml_serialization_test.rb
activerecord-2.3.14 test/cases/yaml_serialization_test.rb
kajam-1.0.3.rc2 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
activerecord-2.3.12 test/cases/yaml_serialization_test.rb
radiant-1.0.0.rc2 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
radiant-1.0.0.rc1 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
activerecord-2.3.11 test/cases/yaml_serialization_test.rb
radiantcms-couchrest_model-0.1.4 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
radiantcms-couchrest_model-0.1.3 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
radiantcms-couchrest_model-0.1.2 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
radiantcms-couchrest_model-0.1.1 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
radiantcms-couchrest_model-0.1 vendor/rails/activerecord/test/cases/yaml_serialization_test.rb
activerecord-2.3.10 test/cases/yaml_serialization_test.rb
activerecord-2.3.9 test/cases/yaml_serialization_test.rb
activerecord-2.3.9.pre test/cases/yaml_serialization_test.rb