Sha256: 981a0a2d53daf9f95d2a9da513aeb3cdbc72b1c97e29ea4ce9bb95072159cc90
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
Given /^created old howitzer project based on rspec$/ do run_simple 'howitzer new test_automation --rspec' all_commands.shift FileUtils.move(Dir.glob("#{expand_path('.')}/test_automation/*"), expand_path('.')) FileUtils.remove_dir File.join(expand_path('.'), 'test_automation'), true overwrite_file('Rakefile', "Dir.chdir(File.join(__dir__, '.'))") overwrite_file('Gemfile', 'Hello') remove 'config/default.yml' end Given /^created old howitzer project based on cucumber$/ do run_simple 'howitzer new test_automation --cucumber' all_commands.shift FileUtils.move(Dir.glob("#{expand_path('.')}/test_automation/*"), expand_path('.')) FileUtils.remove_dir File.join(expand_path('.'), 'test_automation'), true overwrite_file('Rakefile', "Dir.chdir(File.join(__dir__, '.'))") overwrite_file('Gemfile', 'Hello') remove 'config/default.yml' end Given /^created old howitzer project based on turnip$/ do run_simple 'howitzer new test_automation --turnip' all_commands.shift FileUtils.move(Dir.glob("#{expand_path('.')}/test_automation/*"), expand_path('.')) FileUtils.remove_dir File.join(expand_path('.'), 'test_automation'), true end Then 'the output should be exactly:' do |text| text.gsub!('<HOWITZER_VERSION>', Howitzer::VERSION) step 'the output should contain exactly:', text end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
howitzer-2.1.1 | features/step_definitions/common_steps.rb |
howitzer-2.1.0 | features/step_definitions/common_steps.rb |