test/test_controller_generator.rb in padrino-gen-0.1.2 vs test/test_controller_generator.rb in padrino-gen-0.1.3

- old
+ new

@@ -16,11 +16,12 @@ end should "generate controller within existing application" do silence_logger { @skeleton.start(['sample_app', '/tmp', '--script=none', '-t=bacon']) } silence_logger { @contgen.start(['demo_items', '-r=/tmp/sample_app']) } - assert_match_in_file(/SampleApp::controllers do/m, '/tmp/sample_app/app/controllers/demo_items.rb') - assert_match_in_file(/SampleApp::helpers do/m, '/tmp/sample_app/app/helpers/demo_items_helper.rb') + assert_match_in_file(/SampleApp.controllers do/m, '/tmp/sample_app/app/controllers/demo_items.rb') + assert_match_in_file(/SampleApp.helpers do/m, '/tmp/sample_app/app/helpers/demo_items_helper.rb') + assert File.exist?('/tmp/sample_app/app/views/demo_items') end should "generate controller test for bacon" do silence_logger { @skeleton.start(['sample_app', '/tmp', '--script=none', '-t=bacon']) } silence_logger { @contgen.start(['demo_items', '-r=/tmp/sample_app']) }