rubygems_generators/install_cucumber/templates/features/support/env.rb.erb in newgem-1.4.1 vs rubygems_generators/install_cucumber/templates/features/support/env.rb.erb in newgem-1.5.0
- old
+ new
@@ -2,5 +2,13 @@
gem 'cucumber'
require 'cucumber'
gem 'rspec'
require 'spec'
+
+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
+end