Also revert mailer generator test changes in 8b50f89
This commit is contained in:
parent
49416550fe
commit
4884f28c80
|
@ -36,12 +36,12 @@ class MailerGeneratorTest < Rails::Generators::TestCase
|
||||||
def test_invokes_default_template_engine
|
def test_invokes_default_template_engine
|
||||||
run_generator
|
run_generator
|
||||||
assert_file "app/views/notifier/foo.text.erb" do |view|
|
assert_file "app/views/notifier/foo.text.erb" do |view|
|
||||||
assert_match /app\/views\/notifier\/foo$/, view
|
assert_match %r(app/views/notifier/foo\.text\.erb), view
|
||||||
assert_match /<%= @greeting %>/, view
|
assert_match /<%= @greeting %>/, view
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_file "app/views/notifier/bar.text.erb" do |view|
|
assert_file "app/views/notifier/bar.text.erb" do |view|
|
||||||
assert_match /app\/views\/notifier\/bar$/, view
|
assert_match %r(app/views/notifier/bar\.text\.erb), view
|
||||||
assert_match /<%= @greeting %>/, view
|
assert_match /<%= @greeting %>/, view
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue