diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-10 15:32:14 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-10 16:32:07 -0800 |
commit | d09b67cfc0df87e39b257409fad72f7bb6d72a41 (patch) | |
tree | 2a91c077434983ed049115777f8018eb4fce4595 /activerecord/test/cases | |
parent | 4beaa9b839c3ab0574a18174018adae109212c0e (diff) | |
download | rails-d09b67cfc0df87e39b257409fad72f7bb6d72a41.tar.gz rails-d09b67cfc0df87e39b257409fad72f7bb6d72a41.tar.bz2 rails-d09b67cfc0df87e39b257409fad72f7bb6d72a41.zip |
Errno::ENOENT error makes more sense when a file cannot be found
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/fixtures_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index 7e2dafcd01..99dd74c561 100644 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -179,7 +179,7 @@ class FixturesTest < ActiveRecord::TestCase #sanity check to make sure that this file never exists assert Dir[nonexistent_fixture_path+"*"].empty? - assert_raise(FixturesFileNotFound) do + assert_raise(Errno::ENOENT) do ActiveRecord::Fixtures.new( Account.connection, "companies", 'Company', nonexistent_fixture_path) end end |