Sha256: 8ad1eb6f4fc65fea694c1858d97d9fae937c6dc6a40c0b57c60424fc740c8cf8
Contents?: true
Size: 1.76 KB
Versions: 3
Compression:
Stored size: 1.76 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 'a Gemfile lock should be created' end When /^I generate a new feature called "([^\"]*)" for "([^\"]*)"$/ do |feature, site| silent_system("cd /tmp/#{@project_name} ; 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 Then /^"([^"]*)" in the "([^"]*)" project should not exist$/ do |file, project_name| filename = File.join(file, project_name) File.exists?(filename).should be_false end Then /^the "([^"]*)" feature on "([^"]*)" should produce multiline output$/ do |feature, site| @output = `cd /tmp/#{@project_name} ; bin/cucumber-nagios features/#{site}/#{feature}.feature` $?.exitstatus.should == 0 @output.split("\n").size.should > 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumber-nagios-0.8.9 | features/steps/using_steps.rb |
cucumber-nagios-0.8.8 | features/steps/using_steps.rb |
cucumber-nagios-0.8.7 | features/steps/using_steps.rb |