Sha256: 86378ab7fbd2cc61282bbaeeeb039e2c2a5d611eea6601694f6328c08b4f57dc

Contents?: true

Size: 763 Bytes

Versions: 1

Compression:

Stored size: 763 Bytes

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}")

  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 --local").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


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-nagios-0.8.11 features/steps/creating_steps.rb