aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorAlexander Murmann and Can Berk Güder <pair+alexander+cbguder@pivotallabs.com>2013-03-21 14:10:44 -0700
committerAlexander Murmann and Can Berk Güder <pair+alexander+cbguder@pivotallabs.com>2013-03-21 14:10:44 -0700
commit018fc5fc071d718f6fd1a0237996eeeec7d79e65 (patch)
tree60f7161c3c45408cbb514c27b9a4f0faafe60ec3 /activerecord/test/cases
parentecfdc842a58816540e7c96a913f95a0d94be7ca7 (diff)
downloadrails-018fc5fc071d718f6fd1a0237996eeeec7d79e65.tar.gz
rails-018fc5fc071d718f6fd1a0237996eeeec7d79e65.tar.bz2
rails-018fc5fc071d718f6fd1a0237996eeeec7d79e65.zip
Allows setting fixture_path to a Pathname
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/fixtures_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb
index 8ad40ec3f4..f6cfee0cb8 100644
--- a/activerecord/test/cases/fixtures_test.rb
+++ b/activerecord/test/cases/fixtures_test.rb
@@ -576,6 +576,15 @@ class LoadAllFixturesTest < ActiveRecord::TestCase
end
end
+class LoadAllFixturesWithPathnameTest < ActiveRecord::TestCase
+ self.fixture_path = Pathname.new(FIXTURES_ROOT).join('all')
+ fixtures :all
+
+ def test_all_there
+ assert_equal %w(developers people tasks), fixture_table_names.sort
+ end
+end
+
class FasterFixturesTest < ActiveRecord::TestCase
fixtures :categories, :authors