features/support/env.rb in choctop-0.10.0 vs features/support/env.rb in choctop-0.11.0

- old
+ new

@@ -1,9 +1,16 @@ require File.dirname(__FILE__) + "/../../lib/choctop" require "rubygems" -gem 'cucumber' require 'cucumber' -gem 'rspec' require 'spec' -require "activesupport" \ No newline at end of file +require "activesupport" + +Before do + @tmp_root = File.dirname(__FILE__) + "/../../tmp" + @home_path = File.expand_path(File.join(@tmp_root, "home")) + FileUtils.rm_rf @tmp_root + FileUtils.mkdir_p @home_path + ENV['HOME'] = @home_path + @lib_path = File.expand_path(File.dirname(__FILE__) + '/../../lib') +end