spec/spec_helper.rb in ufo-3.0.0 vs spec/spec_helper.rb in ufo-3.0.1

- old
+ new

@@ -9,23 +9,21 @@ require "pp" require "byebug" root = File.expand_path("../", File.dirname(__FILE__)) require "#{root}/lib/ufo" -$dest = "tmp/project" -ENV['DEST_ROOT'] = $dest -ENV['UFO_ROOT'] = $dest +ENV['UFO_ROOT'] = "tmp/project" module Helpers - def create_starter_project_fixture - FileUtils.rm_rf($dest) + def create_ufo_project + FileUtils.rm_rf(Ufo.root) execute("exe/ufo init --app hi --image tongueroo/hi") create_test_settings end # modify the generated settings so we can spec the settings themselves def create_test_settings - FileUtils.cp("spec/fixtures/settings.yml", "#{$dest}/.ufo/settings.yml") + FileUtils.cp("spec/fixtures/settings.yml", "#{Ufo.root}/.ufo/settings.yml") end def execute(cmd) puts "Running: #{cmd}" if show_command? out = `#{cmd}`