diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-21 14:07:38 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-21 14:07:38 -0300 |
commit | 07f3ae8f35d2c422b0fd8d794af0f781aad9a96e (patch) | |
tree | 204207d42a22be522a72d5de2dbbc4a2bfdaba50 /railties | |
parent | d4f220a27bf7b241c19ac9a303adf031733c2ff6 (diff) | |
download | rails-07f3ae8f35d2c422b0fd8d794af0f781aad9a96e.tar.gz rails-07f3ae8f35d2c422b0fd8d794af0f781aad9a96e.tar.bz2 rails-07f3ae8f35d2c422b0fd8d794af0f781aad9a96e.zip |
Fix generator test to match to use the string
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/mailer_generator_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/mailer_generator_test.rb b/railties/test/generators/mailer_generator_test.rb index 71c11e5ef6..8728b39dae 100644 --- a/railties/test/generators/mailer_generator_test.rb +++ b/railties/test/generators/mailer_generator_test.rb @@ -16,7 +16,7 @@ class MailerGeneratorTest < Rails::Generators::TestCase assert_file 'app/mailers/application_mailer.rb' do |mailer| assert_match(/class ApplicationMailer < ActionMailer::Base/, mailer) assert_match(/default from: 'from@example.com'/, mailer) - assert_match(/layout :mailer/, mailer) + assert_match(/layout 'mailer'/, mailer) end end |