Sha256: 158742d7f788a46191ff5fb497d219fa922076ddbb62edbcd6abbd6829b0ad06
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 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 ([^"]*)"$/ do |args| @output = `ruby -I#{File.join(SOUNDCHECK_ROOT, "lib")} #{File.join(SOUNDCHECK_ROOT, "bin", "soundcheck")} #{args}` end Then /^it should have passed$/ do $?.exitstatus.should == 0 end Then /^I should see "([^"]*)"$/ do |text| @output.should include(text) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soundcheck-0.2.0 | features/step_definitions/steps.rb |
soundcheck-0.1.0 | features/step_definitions/steps.rb |