Permalink
Browse files

Merge pull request #553 from arunagw/namespaced_generators

Fixed failing tests for namespaced_generators_test. in 1.9.2
  • Loading branch information...
2 parents 1fac9c7 + 546db69 commit db886c817c3620ceaa68a988947e49e5219532fd @drogus drogus committed May 14, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 railties/test/generators/namespaced_generators_test.rb
@@ -163,7 +163,11 @@ def test_mailer_skeleton_is_created
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

0 comments on commit db886c8

Please sign in to comment.