Sha256: b657a6139bdc9f89c490bc9ebdf3887fcd14212ea50c1243fdca75c345dc60cc

Contents?: true

Size: 921 Bytes

Versions: 8

Compression:

Stored size: 921 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
  File.exists?("/tmp/#{testproj}").should be_true
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cucumber-nagios-0.6.8 features/steps/installing_steps.rb
cucumber-nagios-0.6.7 features/steps/installing_steps.rb
cucumber-nagios-0.6.6 features/steps/installing_steps.rb
cucumber-nagios-0.6.5 features/steps/installing_steps.rb
cucumber-nagios-0.6.4 features/steps/installing_steps.rb
cucumber-nagios-0.6.3 features/steps/installing_steps.rb
cucumber-nagios-0.6.2 features/steps/installing_steps.rb
cucumber-nagios-0.6.1 features/steps/installing_steps.rb