diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 22:19:54 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:40 +0200 |
commit | ea0b0c820de64fa3d67890071af8120dc503dcb7 (patch) | |
tree | f0b58ba1befcc866eec03fa92cc89576f8c84368 /railties/test/rails_generator/rails_mailer_generator_test.rb | |
parent | c972b25df56e12a995774aa0291b2d8c2f3eabb5 (diff) | |
download | rails-ea0b0c820de64fa3d67890071af8120dc503dcb7.tar.gz rails-ea0b0c820de64fa3d67890071af8120dc503dcb7.tar.bz2 rails-ea0b0c820de64fa3d67890071af8120dc503dcb7.zip |
rm -rf rails_generator/generators
Diffstat (limited to 'railties/test/rails_generator/rails_mailer_generator_test.rb')
-rw-r--r-- | railties/test/rails_generator/rails_mailer_generator_test.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/railties/test/rails_generator/rails_mailer_generator_test.rb b/railties/test/rails_generator/rails_mailer_generator_test.rb deleted file mode 100644 index f580fe27ab..0000000000 --- a/railties/test/rails_generator/rails_mailer_generator_test.rb +++ /dev/null @@ -1,29 +0,0 @@ -require 'rails_generator/generator_test_helper' - -class RailsMailerGeneratorTest < GeneratorTestCase - - def test_generates_mailer - run_generator('mailer', %w(Notifier reset_password)) - - assert_generated_model_for :notifier, 'ActionMailer::Base' do |model| - assert_has_method model, :reset_password do |name, body| - assert_equal [ - "subject 'Notifier#reset_password'", - "recipients ''", - "from ''", - "sent_on sent_at", - "", - "body :greeting => 'Hi,'" - ], - body.split("\n").map{|line| line.sub(' '*4, '') } - end - - assert_no_match /(self.default_url_options =|default_url_options\[.*\] =)/, model, - 'individual mailer models should not set default_url_options because the options are shared by all mailers' - end - - assert_generated_views_for :notifier, 'reset_password.erb' - assert_generated_unit_test_for :notifier, 'ActionMailer::TestCase' - assert_generated_file "test/fixtures/notifier/reset_password" - end -end |