producer-core/features/steps/output_steps.rb
Thibault Jouan 1ccd95b80f Fix error formatting in debug mode
Backtrace filtering was only disabled for exception cause, this change
ensure no backtrace filtering at all in debug mode.

* Prevent main exception filtering when debug mode is enabled;
* Test when exception cause must be displayed;
* Test how exception cause must be displayed.
2015-04-03 23:18:28 +00:00

36 lines
1010 B
Ruby

Then /^the output must match \/([^\/]+)\/$/ do |pattern|
assert_matching_output pattern, all_output
end
Then /^the output must contain "([^"]+)"$/ do |content|
assert_partial_output content, all_output
end
Then /^the output must contain:$/ do |content|
assert_partial_output content, all_output
end
Then /^the output must not contain "([^"]+)"$/ do |content|
assert_no_partial_output content, all_output
end
Then /^the output must contain exactly "([^"]+)"$/ do |content|
assert_exact_output content, all_output
end
Then /^the output must contain exactly:$/ do |content|
assert_exact_output content, all_output
end
Then /^the error output must contain exactly "([^"]+)"$/ do |content|
assert_exact_output content, all_stderr
end
Then /^the output must contain ruby lib directory$/ do
assert_partial_output RbConfig::CONFIG['rubylibdir'], all_output
end
Then /^the output must not contain ruby lib directory$/ do
assert_no_partial_output RbConfig::CONFIG['rubylibdir'], all_output
end