features/step_definitions/run_steps.rb in warder-0.1.6 vs features/step_definitions/run_steps.rb in warder-0.1.7

- old
+ new

@@ -23,5 +23,15 @@ validation_output = send(:"#{what.gsub(' ', '_')}_output") validation_output.split("\n").each do |string| step "the output should contain \"#{string}\"" end end + +def command_output_for_project_or_file(cmd) + if @filename + `cd spec/fixtures/ && #{cmd} ./#{@filename}` + elsif @projectname + `cd spec/fixtures/#{@projectname} && #{cmd} ./` + else + fail NotImplementedError + end +end