Fixed tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
4c7555aef7
commit
6417cdd846
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue