aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/fixtures/all/developers.yml0
-rw-r--r--activerecord/test/fixtures/all/people.csv0
-rw-r--r--activerecord/test/fixtures/all/tasks.yml0
-rwxr-xr-xactiverecord/test/fixtures_test.rb9
4 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/all/developers.yml b/activerecord/test/fixtures/all/developers.yml
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/activerecord/test/fixtures/all/developers.yml
diff --git a/activerecord/test/fixtures/all/people.csv b/activerecord/test/fixtures/all/people.csv
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/activerecord/test/fixtures/all/people.csv
diff --git a/activerecord/test/fixtures/all/tasks.yml b/activerecord/test/fixtures/all/tasks.yml
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/activerecord/test/fixtures/all/tasks.yml
diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb
index 35882526a1..7ccfc9be86 100755
--- a/activerecord/test/fixtures_test.rb
+++ b/activerecord/test/fixtures_test.rb
@@ -399,3 +399,12 @@ class FixturesBrokenRollbackTest < Test::Unit::TestCase
raise 'argh'
end
end
+
+class LoadAllFixturesTest < Test::Unit::TestCase
+ write_inheritable_attribute :fixture_path, File.join(File.dirname(__FILE__), '/fixtures/all')
+ fixtures :all
+
+ def test_all_there
+ assert_equal %w(developers people tasks), fixture_table_names.sort
+ end
+end