diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-21 06:54:04 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-21 06:54:04 +0000 |
commit | b69199c1da3ef89bdbebb98084bcf6fe31732a53 (patch) | |
tree | 475bcc058a91c579387fe6775c5703f0af4bb7ce /railties/lib | |
parent | bc6570dfcb69cbe9c1435fecb7d5949802c57401 (diff) | |
download | rails-b69199c1da3ef89bdbebb98084bcf6fe31732a53.tar.gz rails-b69199c1da3ef89bdbebb98084bcf6fe31732a53.tar.bz2 rails-b69199c1da3ef89bdbebb98084bcf6fe31732a53.zip |
Fixed that mailer generator generated fixtures/plural while units expected fixtures/singular #1457 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb b/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb index ffa321fb87..bac0cb0175 100644 --- a/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +++ b/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb @@ -8,7 +8,7 @@ class MailerGenerator < Rails::Generator::NamedBase m.directory File.join('app/models', class_path) m.directory File.join('app/views', class_path, file_name) m.directory File.join('test/unit', class_path) - m.directory File.join('test/fixtures', class_path, table_name) + m.directory File.join('test/fixtures', class_path, file_name) # Mailer class and unit test. m.template "mailer.rb", File.join('app/models', @@ -24,7 +24,7 @@ class MailerGenerator < Rails::Generator::NamedBase File.join('app/views', class_path, file_name, "#{action}.rhtml"), :assigns => { :action => action } m.template "fixture.rhtml", - File.join('test/fixtures', class_path, table_name, action), + File.join('test/fixtures', class_path, file_name, action), :assigns => { :action => action } end end |