Sha256: aa424e0deee478e11ec2bc020fe7b811a732b508ce5de45454c9f44567fdd111

Contents?: true

Size: 1.3 KB

Versions: 15

Compression:

Stored size: 1.3 KB

Contents

require 'rubygems'
require 'test/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"
      project = nil
    end
  	
    def exit_normal
      puts "\n\n  Exiting JumpStart...".purple
      puts "\n  Goodbye!\n\n"
      puts "******************************************************************************************************************************************\n"
      project = nil
    end
    
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jumpstart-0.1.19 test/helper.rb
jumpstart-0.1.17 test/helper.rb
jumpstart-0.1.16 test/helper.rb
jumpstart-0.1.15 test/helper.rb
jumpstart-0.1.14 test/helper.rb
jumpstart-0.1.13 test/helper.rb
jumpstart-0.1.11 test/helper.rb
jumpstart-0.1.10 test/helper.rb
jumpstart-0.1.9 test/helper.rb
jumpstart-0.1.8 test/helper.rb
jumpstart-0.1.6 test/helper.rb
jumpstart-0.1.5 test/helper.rb
jumpstart-0.1.4 test/helper.rb
jumpstart-0.1.3 test/helper.rb
jumpstart-0.1.2 test/helper.rb