features/step_definitions/run_steps.rb in warder-0.1.4 vs features/step_definitions/run_steps.rb in warder-0.1.5
- old
+ new
@@ -14,10 +14,10 @@
Then(/^warder does nothing$/) do
step 'the output should match /.{0}/'
end
-Then(/^warder detects (.+) issues$/) do |what|
+Then(/^warder detects (.+) (issues|violations)$/) do |what, _|
executing_output = send(:"executing_#{what.gsub(' ', '_')}")
step "the output should contain \"#{executing_output}\""
validation_output = send(:"#{what.gsub(' ', '_')}_output")
validation_output.split("\n").each do |string|