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