diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-28 20:39:21 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-28 20:39:21 +0000 |
commit | 6417cdd846dd387a75e672397fd118f4bc928485 (patch) | |
tree | cb0be00fee9551702bec45da6118ba60db13a627 | |
parent | 4c7555aef78decb8f9d515be72741c273114bc21 (diff) | |
download | rails-6417cdd846dd387a75e672397fd118f4bc928485.tar.gz rails-6417cdd846dd387a75e672397fd118f4bc928485.tar.bz2 rails-6417cdd846dd387a75e672397fd118f4bc928485.zip |
Fixed tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/CHANGELOG | 2 | ||||
-rwxr-xr-x | activerecord/test/fixtures_test.rb | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index d9af0c2157..ecad62c038 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's #1861, #2477 [DHH] + * Speed up class -> connection caching and stale connection verification. #3979 [Stefan Kaes] * Add set_fixture_class to allow the use of table name accessors with models which use set_table_name. [Kevin Clark] diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb index 72cb977c87..a57232e315 100755 --- a/activerecord/test/fixtures_test.rb +++ b/activerecord/test/fixtures_test.rb @@ -172,19 +172,15 @@ class FixturesTest < Test::Unit::TestCase end end - def test_non_yml_file_in_subdirectory - assert_equal(categories(:sub_special_1).name, "A special category") - assert_equal(categories(:sub_special_1).class, SpecialCategory) - end def test_yml_file_in_subdirectory - assert_equal(categories(:sub_special_3).name, "A special category in a .yml file") - assert_equal(categories(:sub_special_3).class, SpecialCategory) + assert_equal(categories(:sub_special_1).name, "A special category in a subdir file") + assert_equal(categories(:sub_special_1).class, SpecialCategory) end def test_subsubdir_file_with_arbitrary_name - assert_equal(categories(:sub_special_5).name, "A special category in an arbitrarily named subsubdir file") - assert_equal(categories(:sub_special_5).class, SpecialCategory) + assert_equal(categories(:sub_special_3).name, "A special category in an arbitrarily named subsubdir file") + assert_equal(categories(:sub_special_3).class, SpecialCategory) end |