aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-05-14 14:05:54 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-05-14 14:06:06 +0530
commit546db693fbe41b1bb8e2335ac05a74485b75580f (patch)
treec3c6614b45bfafd7cb97417eaa37e72f4b9f8029 /railties
parent1fac9c74ab0ebedb60fd57cadf0042b040938da8 (diff)
downloadrails-546db693fbe41b1bb8e2335ac05a74485b75580f.tar.gz
rails-546db693fbe41b1bb8e2335ac05a74485b75580f.tar.bz2
rails-546db693fbe41b1bb8e2335ac05a74485b75580f.zip
Fixed failing tests for namespaced_generators_test. in 1.9.2
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/namespaced_generators_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb
index eb56e8d1a4..38f024f061 100644
--- a/railties/test/generators/namespaced_generators_test.rb
+++ b/railties/test/generators/namespaced_generators_test.rb
@@ -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