Sha256: 29f59028f6ed842aee8b31b38d14c5acf07d619ab7661392b4d5f7e32bec1249
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
Given /^cucumber\-nagios is installed$/ do When 'I build the gem' And 'I install the latest gem' Then 'I should have "cucumber-nagios-gen" on my path' And 'I should have "cucumber-nagios" on my path' end When /^I create a new project called "([^\"]*)"$/ do |project_name| @project_name = project_name FileUtils.rm_rf("/tmp/#{@project_name}") Dir.chdir("/tmp") do silent_system("cucumber-nagios-gen project #{@project_name}").should be_true end end When /^I pretend to create a new project called "([^\"]*)"$/ do |project_name| @project_name = project_name FileUtils.rm_rf("/tmp/#{@project_name}") if File.directory?("/tmp/#{@project_name}") Dir.chdir("/tmp") do silent_system("cucumber-nagios-gen project --pretend #{@project_name}").should be_true end end When /^I freeze in dependencies$/ do @project_name.should_not be_nil Dir.chdir("/tmp/#{@project_name}") do silent_system("bundle install --local").should be_true end end Then /^I do not freeze in dependencies$/ do @project_name.should_not be_nil lambda do Dir.chdir("/tmp/#{@project_name}") do $stderr.puts "This should not run" end end.should raise_error(Errno::ENOENT) end Then /^a Gemfile lock should be created$/ do @project_name.should_not be_nil File.exists?("/tmp/#{@project_name}/Gemfile.lock").should be_true end Then /^a Gemfile lock should not be created$/ do @project_name.should_not be_nil File.exists?("/tmp/#{@project_name}/Gemfile.lock").should be_false end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-nagios-0.9.2 | features/steps/creating_steps.rb |
cucumber-nagios-0.9.0 | features/steps/creating_steps.rb |