Merge pull request #553 from arunagw/namespaced_generators

Fixed failing tests for namespaced_generators_test. in 1.9.2
This commit is contained in:
Piotr Sarnacki
2011-05-14 01:54:16 -07:00

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