Sha256: 0c63b856cadb230377bd6860306946193fa0ac50a8b4a7ecafe82133db9c26b0

Contents?: true

Size: 871 Bytes

Versions: 3

Compression:

Stored size: 871 Bytes

Contents

When /^I build the gem$/ do
  project_root = File.join(File.dirname(__FILE__), '..', '..')
  rakefile = File.join(project_root, 'Rakefile')
  File.exist?(rakefile).should be_true
  
  silent_system("rake -f #{rakefile} build").should be_true
end

When /^I install the latest gem$/ do
  project_root = File.join(File.dirname(__FILE__), '..', '..')
  pkg_dir = File.join(project_root, 'pkg')
  pkg = File.expand_path(Dir.glob(File.join(pkg_dir, '*.gem')).last)

  silent_system("gem install #{pkg} 2>&1 > /dev/null").should be_true
end

Then /^I should have cucumber\-nagios\-gen on my path$/ do
  silent_system("which cucumber-nagios-gen").should be_true
end

Then /^I can generate a new project$/ do
  testproj = "testproj-#{Time.now.to_i}"
  FileUtils.rm_rf("/tmp/#{testproj}")
  
  silent_system("cd /tmp ; cucumber-nagios-gen project #{testproj}").should be_true
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-nagios-0.6.0 features/steps/installing_steps.rb
cucumber-nagios-0.5.1 features/steps/installing_steps.rb
cucumber-nagios-0.5.0 features/steps/installing_steps.rb