aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2014-10-12 11:08:50 +0900
committerAndrew White <andyw@pixeltrix.co.uk>2014-11-02 23:58:30 +0000
commit1b958e0a79ea92bdcc33f1c2e2882f9a3aac154c (patch)
tree77b260d9941ebaa8c343b6bf6109c63e5bdfbcf5 /railties/test/application/rake
parent999a07e3b992154e511135096c137c8666ae36b0 (diff)
downloadrails-1b958e0a79ea92bdcc33f1c2e2882f9a3aac154c.tar.gz
rails-1b958e0a79ea92bdcc33f1c2e2882f9a3aac154c.tar.bz2
rails-1b958e0a79ea92bdcc33f1c2e2882f9a3aac154c.zip
Revert "Replace String index juggling with Pathname goodness in db:fixtures:load"
This reverts commit 482fdad5ef8a73688b50bba3991dd4ef6f286edd. Fixes #17237.
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r--railties/test/application/rake/dbs_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb
index 267469b6f5..524c70aad2 100644
--- a/railties/test/application/rake/dbs_test.rb
+++ b/railties/test/application/rake/dbs_test.rb
@@ -109,6 +109,16 @@ module ApplicationTests
db_fixtures_load database_url_db_name
end
+ test 'db:fixtures:load with namespaced fixture' do
+ require "#{app_path}/config/environment"
+ Dir.chdir(app_path) do
+ `rails generate model admin::book title:string;
+ bundle exec rake db:migrate db:fixtures:load`
+ require "#{app_path}/app/models/admin/book"
+ assert_equal 2, Admin::Book.count
+ end
+ end
+
def db_structure_dump_and_load(expected_database)
Dir.chdir(app_path) do
`rails generate model book title:string;