features/steps/generator.rb in choctop-0.9.3 vs features/steps/generator.rb in choctop-0.9.5

- old
+ new

@@ -22,17 +22,18 @@ end Given /Rakefile constants rewired for local rsync/ do end -Given /^a Cocoa app with choctop installed$/ do +Given /^a Cocoa app with choctop installed called '(.*)'$/ do |name| Given "a safe folder" @remote_folder = File.expand_path(File.join(@tmp_root, 'website')) FileUtils.rm_rf @remote_folder FileUtils.mkdir_p @remote_folder - `cp -r #{File.dirname(__FILE__) + "/../fixtures/SampleApp"} #{@tmp_root}/ 2> /dev/null` - `rm -rf #{@tmp_root}/SampleApp/build` - setup_active_project_folder "SampleApp" + app_path = File.join(File.dirname(__FILE__), "../fixtures", name) + `cp -r '#{app_path}' #{@tmp_root}/ 2> /dev/null` + `rm -rf '#{@tmp_root}/#{name}/build'` + setup_active_project_folder name Given "I run local executable 'install_choctop' with arguments '.'" Given "Rakefile wired to use development code instead of installed RubyGem" Given "Rakefile constants rewired for local rsync" ENV['NO_FINDER'] = 'YES' # disable Finder during tests end