mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #553 from arunagw/namespaced_generators
Fixed failing tests for namespaced_generators_test. in 1.9.2
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user