mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed failing tests for namespaced_generators_test. in 1.9.2
This commit is contained in:
parent
1fac9c74ab
commit
546db693fb
1 changed files with 5 additions and 1 deletions
|
@ -163,7 +163,11 @@ class NamespacedMailerGeneratorTest < NamespacedGeneratorTestCase
|
|||
assert_file "app/mailers/test_app/notifier.rb" do |mailer|
|
||||
assert_match /module TestApp/, mailer
|
||||
assert_match /class Notifier < ActionMailer::Base/, mailer
|
||||
assert_match /default :from => "from@example.com"/, mailer
|
||||
if RUBY_VERSION < "1.9"
|
||||
assert_match /default :from => "from@example.com"/, mailer
|
||||
else
|
||||
assert_match /default from: "from@example.com"/, mailer
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue