From 6417cdd846dd387a75e672397fd118f4bc928485 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 Feb 2006 20:39:21 +0000 Subject: [PATCH] Fixed tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/test/fixtures_test.rb | 14 +++++--------- 2 files changed, 7 insertions(+), 9 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") + + def test_yml_file_in_subdirectory + 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_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) - 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