features/step_definitions/run_steps.rb in warder-0.1.9 vs features/step_definitions/run_steps.rb in warder-0.2.0

- old
+ new

@@ -14,16 +14,16 @@ Then(/^warder does nothing$/) do step 'the output should match /.{0}/' end -Then(/^warder detects (.+) (issues|violations)$/) do |what, _| +Then(/^warder detects( no)? (.+) (issues|violations)$/) do |no, what, _| executing_output = send(:"executing_#{what.gsub(' ', '_')}") - step "the output should contain \"#{executing_output}\"" + step "the output should#{' not' if no} contain \"#{executing_output}\"" validation_output = send(:"#{what.gsub(' ', '_')}_output") validation_output.split("\n").each do |string| - step "the output should contain \"#{string}\"" + step "the output should#{' not' if no} contain \"#{string}\"" end end def command_output_for_project_or_file(cmd) if @filename