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' end When /^I create a new project called "([^\"]*)"$/ do |project_name| @project_name = project_name FileUtils.rm_rf("/tmp/#{@project_name}") silent_system("cd /tmp ; cucumber-nagios-gen project #{@project_name}").should be_true end When /^I freeze in dependencies$/ do @project_name.should_not be_nil silent_system("cd /tmp/#{@project_name} ; bundle install").should be_true 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