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