diff options
author | Wojciech Wnętrzak <w.wnetrzak@gmail.com> | 2012-07-06 21:22:53 +0200 |
---|---|---|
committer | Wojciech Wnętrzak <w.wnetrzak@gmail.com> | 2012-07-06 21:22:53 +0200 |
commit | 8fe9b43b3016f2c0e7afad8fc081bbf37f267226 (patch) | |
tree | 302525f6430ece96460da3ec31774ebc16292776 /railties | |
parent | f874b155611a837c97be80dd02681ab4c3c0a63e (diff) | |
download | rails-8fe9b43b3016f2c0e7afad8fc081bbf37f267226.tar.gz rails-8fe9b43b3016f2c0e7afad8fc081bbf37f267226.tar.bz2 rails-8fe9b43b3016f2c0e7afad8fc081bbf37f267226.zip |
Fixed generating namespaced table_name_prefix in engines
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/namespaced_generators_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb index 2ae9dc61a7..db2b8af217 100644 --- a/railties/test/generators/namespaced_generators_test.rb +++ b/railties/test/generators/namespaced_generators_test.rb @@ -99,7 +99,7 @@ class NamespacedModelGeneratorTest < NamespacedGeneratorTestCase run_generator ["admin/account"] assert_file "app/models/test_app/admin.rb", /module TestApp/, /module Admin/ assert_file "app/models/test_app/admin.rb", /def self\.table_name_prefix/ - assert_file "app/models/test_app/admin.rb", /'admin_'/ + assert_file "app/models/test_app/admin.rb", /'test_app_admin_'/ assert_file "app/models/test_app/admin/account.rb", /module TestApp/, /class Admin::Account < ActiveRecord::Base/ end |