Sha256: 3fb383dc25e4f29c04db71254320acf6a9c66ee441752979c5a8d4a073e5eeb0
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 Bytes
Contents
Given /^a Rails app$/ do FileUtils.chdir(@tmp_root) do `rails my_project` end @active_project_folder = File.expand_path(File.join(@tmp_root, "my_project")) end Given /^I copy the project generators into "([^\"]*)"$/ do |target_folder| in_project_folder do FileUtils.mkdir_p(target_folder) end `cp -rf #{File.dirname(__FILE__) + "/../../rails_generators/*"} #{File.join(@active_project_folder, target_folder)}` end When /^I add a feature file to test Rails index.html default file$/ do sample_feature = File.expand_path(File.dirname(__FILE__) + "/../fixtures/sample_feature") in_project_folder do `cp -rf #{sample_feature} features/sample.feature` end end After do in_project_folder do Given 'I invoke task "rake culerity:rails:stop"' end end
Version data entries
3 entries across 3 versions & 2 rubygems