Sha256: a5aaa0cd5ae4592d1643e8a46f38c2ce71a7d360b812e81fdea8aeec8cf6260a
Contents?: true
Size: 987 Bytes
Versions: 2
Compression:
Stored size: 987 Bytes
Contents
When /^I build the gem$/ do project_root = Pathname.new(File.dirname(__FILE__)).parent.parent.expand_path rakefile = project_root.join('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 = Pathname.new(File.dirname(__FILE__)).parent.parent.expand_path pkg_dir = project_root.join('pkg') glob = File.join(pkg_dir, '*.gem') latest = Dir.glob(glob).sort {|a, b| File.ctime(a) <=> File.ctime(b) }.last silent_system("gem install --local #{latest}").should be_true end Then /^I should have "([^"]*)" on my path$/ do |file| silent_system("which #{file}").should be_true end Then /^I can generate a new project$/ do testproj = "testproj-#{Time.now.to_i}" FileUtils.rm_rf("/tmp/#{testproj}") Dir.chdir("/tmp") do silent_system("cucumber-nagios-gen project #{testproj}").should be_true end File.exists?("/tmp/#{testproj}").should be_true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-nagios-0.9.2 | features/steps/installing_steps.rb |
cucumber-nagios-0.9.0 | features/steps/installing_steps.rb |