diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-22 21:04:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-22 21:04:32 -0700 |
commit | ea4e021dceea10ba1b98ac9b33e36cabf735ce82 (patch) | |
tree | 72974490c032f9a753f3fc41d335a049c8abbc05 /activerecord/test/cases/yaml_serialization_test.rb | |
parent | b714140f4df50d102e70b0151bbb3a09e470d61a (diff) | |
parent | b332891b2ab4188e9d39737f4d214812afa3ce2c (diff) | |
download | rails-ea4e021dceea10ba1b98ac9b33e36cabf735ce82.tar.gz rails-ea4e021dceea10ba1b98ac9b33e36cabf735ce82.tar.bz2 rails-ea4e021dceea10ba1b98ac9b33e36cabf735ce82.zip |
Merge pull request #5557 from carlosantoniodasilva/fix-build-3-2
Fix build for branch 3-2-stable
Diffstat (limited to 'activerecord/test/cases/yaml_serialization_test.rb')
-rw-r--r-- | activerecord/test/cases/yaml_serialization_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/yaml_serialization_test.rb b/activerecord/test/cases/yaml_serialization_test.rb index 5a38f2c6ee..3b02526916 100644 --- a/activerecord/test/cases/yaml_serialization_test.rb +++ b/activerecord/test/cases/yaml_serialization_test.rb @@ -12,7 +12,7 @@ class YamlSerializationTest < ActiveRecord::TestCase end def test_roundtrip - topic = Topic.first + topic = Topic.order(:id).first assert topic t = YAML.load YAML.dump topic assert_equal topic, t @@ -24,7 +24,7 @@ class YamlSerializationTest < ActiveRecord::TestCase end def test_encode_with_coder - topic = Topic.first + topic = Topic.order(:id).first coder = {} topic.encode_with coder assert_equal({'attributes' => topic.attributes}, coder) @@ -34,7 +34,7 @@ class YamlSerializationTest < ActiveRecord::TestCase require 'psych' def test_psych_roundtrip - topic = Topic.first + topic = Topic.order(:id).first assert topic t = Psych.load Psych.dump topic assert_equal topic, t |