Permalink
Browse files

[Padrino-gen] Corrected test.

  • Loading branch information...
1 parent 8baa1ed commit 8a92276c4e4e7f342f5b48f23e79acc93e6e348b @joshbuddy joshbuddy committed Aug 23, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 8a92276

Please sign in to comment.