diff options
author | Matthew Draper <matthew@trebex.net> | 2014-06-13 08:10:08 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2014-06-13 08:10:08 +0930 |
commit | 8a3046133aba188d81f31b034d6594899b23c70c (patch) | |
tree | c5853ad14f30e52fd5e21f691ad02b0aac922a48 /activerecord/test/cases | |
parent | d7f780c30438ac563cd170080ed6e8f434256855 (diff) | |
parent | 8019ca7a0ff5e057eeba0d6754aa1f84350c31d1 (diff) | |
download | rails-8a3046133aba188d81f31b034d6594899b23c70c.tar.gz rails-8a3046133aba188d81f31b034d6594899b23c70c.tar.bz2 rails-8a3046133aba188d81f31b034d6594899b23c70c.zip |
Merge pull request #15672 from sgrif/sg-topics-content
Update test data which doesn't reflect expected usage
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/persistence_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/test/cases/persistence_test.rb b/activerecord/test/cases/persistence_test.rb index 7f5d0d66d3..bc21eef919 100644 --- a/activerecord/test/cases/persistence_test.rb +++ b/activerecord/test/cases/persistence_test.rb @@ -514,14 +514,14 @@ class PersistenceTest < ActiveRecord::TestCase def test_update_column_should_not_leave_the_object_dirty topic = Topic.find(1) - topic.update_column("content", "Have a nice day") + topic.update_column("content", "--- Have a nice day\n...\n") topic.reload - topic.update_column(:content, "You too") + topic.update_column(:content, "--- You too\n...\n") assert_equal [], topic.changed topic.reload - topic.update_column("content", "Have a nice day") + topic.update_column("content", "--- Have a nice day\n...\n") assert_equal [], topic.changed end @@ -605,14 +605,14 @@ class PersistenceTest < ActiveRecord::TestCase def test_update_columns_should_not_leave_the_object_dirty topic = Topic.find(1) - topic.update({ "content" => "Have a nice day", :author_name => "Jose" }) + topic.update({ "content" => "--- Have a nice day\n...\n", :author_name => "Jose" }) topic.reload - topic.update_columns({ content: "You too", "author_name" => "Sebastian" }) + topic.update_columns({ content: "--- You too\n...\n", "author_name" => "Sebastian" }) assert_equal [], topic.changed topic.reload - topic.update_columns({ content: "Have a nice day", author_name: "Jose" }) + topic.update_columns({ content: "--- Have a nice day\n...\n", author_name: "Jose" }) assert_equal [], topic.changed end |