test/test_newgem_generator.rb in newgem-0.13.2 vs test/test_newgem_generator.rb in newgem-0.13.3

- old
+ new

@@ -48,19 +48,28 @@ end assert_manifest_complete end - def test_newgem_with_website - run_generator('newgem', [APP_ROOT], sources, {:website => true}) + def test_newgem_with_website_by_default + run_generator('newgem', [APP_ROOT], sources) %w[txt2html].each do |file| assert_generated_file("script/#{file}") end %w[index.txt index.html template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file| assert_generated_file("website/#{file}") end + + assert_manifest_complete + end + + def test_newgem_with_no_website + run_generator('newgem', [APP_ROOT], sources, {:no_website => true}) + + assert !File.exists?("#{APP_ROOT}/script/txt2html"), "No script/txt2html should be generated" + assert !File.exists?("#{APP_ROOT}/website"), "No website folder should be generated" assert_manifest_complete end def test_newgem_with_executable