From 018fc5fc071d718f6fd1a0237996eeeec7d79e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Murmann=20and=20Can=20Berk=20G=C3=BCder?= Date: Thu, 21 Mar 2013 14:10:44 -0700 Subject: Allows setting fixture_path to a Pathname --- activerecord/test/cases/fixtures_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'activerecord/test') 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 -- cgit v1.2.3