Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Padrino-gen] Corrected test.

  • Loading branch information...
commit 8a92276c4e4e7f342f5b48f23e79acc93e6e348b 1 parent 8baa1ed
@joshbuddy joshbuddy authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  padrino-gen/test/test_mailer_generator.rb
View
3  padrino-gen/test/test_mailer_generator.rb
@@ -24,8 +24,9 @@ def setup
silence_logger { generate(:project, 'sample_project', '--root=/tmp', '--script=none', '-t=bacon') }
silence_logger { generate(:app, 'subby', '-r=/tmp/sample_project') }
silence_logger { generate(:mailer, 'demo', 'action1', 'action2', '-a=/subby', '-r=/tmp/sample_project') }
- puts File.read('/tmp/sample_project/subby/mailers/demo.rb')
assert_match_in_file(/Subby.mailer :demo/m, '/tmp/sample_project/subby/mailers/demo.rb')
+ assert_match_in_file(/email :action1 do.*?end/m, '/tmp/sample_project/subby/mailers/demo.rb')
+ assert_match_in_file(/email :action2 do.*?end/m, '/tmp/sample_project/subby/mailers/demo.rb')
assert_dir_exists('/tmp/sample_project/subby/views/mailers/demo')
end
Please sign in to comment.
Something went wrong with that request. Please try again.