Sha256: 5157523f74e54420a906126de0403a8523cced3c8d27fb9850a76b5b8cc7a4db
Contents?: true
Size: 593 Bytes
Versions: 6
Compression:
Stored size: 593 Bytes
Contents
SOUNDCHECK_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) Given /^the "([^"]*)" fixture$/ do |fixture_path| Dir.chdir(File.join(SOUNDCHECK_ROOT, "fixtures", fixture_path)) end When /^I run "soundcheck\s?([^"]*)"$/ do |args| @output = `ruby -I#{File.join(SOUNDCHECK_ROOT, "lib")} #{File.join(SOUNDCHECK_ROOT, "bin", "soundcheck")} #{args} 2>&1` end Then /^it should have passed$/ do $?.exitstatus.should == 0 end Then /^it should have failed$/ do $?.exitstatus.should_not == 0 end Then /^I should see "([^"]*)"$/ do |text| @output.should include(text) end
Version data entries
6 entries across 6 versions & 1 rubygems