lib/calabash/cli/generate.rb in calabash-1.9.9.pre3 vs lib/calabash/cli/generate.rb in calabash-2.0.0.pre1

- old
+ new

@@ -20,10 +20,11 @@ reset_method = :clear cucumber_config = File.read(file(File.join('config', 'cucumber.yml'))) env = File.read(file(File.join('features', 'support', 'env.rb'))) + dry_run = File.read(file(File.join('features', 'support', 'dry_run.rb'))) sample_feature = File.read(file(File.join('features', 'sample.feature'))) calabash_steps = File.read(file(File.join('features', 'step_definitions', 'calabash_steps.rb'))) hooks = File.read(file(File.join('features', 'support', 'hooks.rb'))) hooks.sub!("#!DEFAULT_RESET_BETWEEN#!", ":#{reset_between}") @@ -44,9 +45,10 @@ File.open(File.join('features', 'sample.feature'), 'w') {|file| file.write(sample_feature) } File.open(File.join('features', 'step_definitions', 'calabash_steps.rb'), 'w') {|file| file.write(calabash_steps) } File.open(File.join('features', 'support', 'hooks.rb'), 'w') {|file| file.write(hooks) } File.open(File.join('features', 'support', 'env.rb'), 'w') {|file| file.write(env) } + File.open(File.join('features', 'support', 'dry_run.rb'), 'w') {|file| file.write(dry_run) } gemfile = File.readlines(file(File.join('Gemfile'))) unless File.exist?('Gemfile') File.open('Gemfile', 'w') do |file|