penchant/features/step_definitions/when/i_run_in.rb

4 lines
141 B
Ruby
Raw Normal View History

When /^I run "([^"]*)" in the "([^"]*)" directory$/ do |command, dir|
@output = %x{bash -c 'opwd=$PWD; cd #{dir} && $opwd/#{command}'}
end