1
0
Fork 0
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:
Arun Agrawal 2011-05-14 14:05:54 +05:30
parent 1fac9c74ab
commit 546db693fb

View file

@ -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