Sha256: ba9ef21ff50a514a2a3f39f4f1f33a803ba7530fcb0e1259fc8a5b07bdbee803

Contents?: true

Size: 1.35 KB

Versions: 11

Compression:

Stored size: 1.35 KB

Contents

Given /^a project called "([^\"]*)" is created and frozen$/ do |project_name|
  @project_name = project_name
  Given 'cucumber-nagios is installed'
  When "I create a new project called \"#{@project_name}\""
  And 'I freeze in dependencies'
  Then 'my gems directory should be populated'
end

When /^I generate a new feature called "([^\"]*)" for "([^\"]*)"$/ do |feature, site|
  silent_system("cd /tmp/#{@project_name} ; bin/cucumber-nagios-gen feature #{site} #{feature}")
end

Then /^a feature file should exist for "([^\"]*)" on "([^\"]*)"$/ do |feature, site|
  File.exists?("/tmp/#{@project_name}/features/#{site}/#{feature}.feature").should be_true
end

Then /^the "([^\"]*)" feature on "([^\"]*)" should exit cleanly$/ do |feature, site|
  silent_system("cd /tmp/#{@project_name} ; bin/cucumber-nagios features/#{site}/#{feature}.feature").should be_true
end

Then /^the "([^\"]*)" feature on "([^\"]*)" should not exit cleanly$/ do |feature, site|
  silent_system("cd /tmp/#{@project_name} ; bin/cucumber-nagios features/#{site}/#{feature}.feature").should be_false
end

When /^the "([^\"]*)" feature on "([^\"]*)" checks for something preposterous$/ do |feature, site|
  file_name = "/tmp/#{@project_name}/features/#{site}/#{feature}.feature"
  File.open(file_name,'a') do |file|
    file << "     Then I should see \"supercalifragilisticexpialidocious\""
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cucumber-nagios-0.6.8 features/steps/using_steps.rb
cucumber-nagios-0.6.7 features/steps/using_steps.rb
cucumber-nagios-0.6.6 features/steps/using_steps.rb
cucumber-nagios-0.6.5 features/steps/using_steps.rb
cucumber-nagios-0.6.4 features/steps/using_steps.rb
cucumber-nagios-0.6.3 features/steps/using_steps.rb
cucumber-nagios-0.6.2 features/steps/using_steps.rb
cucumber-nagios-0.6.1 features/steps/using_steps.rb
cucumber-nagios-0.6.0 features/steps/using_steps.rb
cucumber-nagios-0.5.1 features/steps/using_steps.rb
cucumber-nagios-0.5.0 features/steps/using_steps.rb