test/helper.rb in jumpstart-0.1.0 vs test/helper.rb in jumpstart-0.1.1

- old
+ new

@@ -1,31 +1,37 @@ require 'rubygems' -require 'test/unit' +require 'minitest/unit' require 'shoulda' +require 'mocha' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'jumpstart' class Test::Unit::TestCase - + end module JumpStart + class Base - + + # Added monkeypatch for exit methods back until I find a more elegant way to stop generated jumpstarts (jumpstarts that are started programatically during testing) from actually running the exit method. + # Tests that use this patch: + # new_project_from_template_options tests. Starting around line 478 of test_base.rb def exit_with_success puts "\n\n Exiting JumpStart...".purple puts "\n Success! ".green + @project_name.green_bold + " has been created at: ".green + FileUtils.join_paths(@install_path, @project_name).green_bold + "\n\n".green puts "******************************************************************************************************************************************\n" - @test_project = nil + project = nil end - + def exit_normal puts "\n\n Exiting JumpStart...".purple puts "\n Goodbye!\n\n" puts "******************************************************************************************************************************************\n" - @test_project = nil + project = nil end end + end \ No newline at end of file