Filter ruby lib directory from error backtrace
This commit is contained in:
@@ -25,3 +25,8 @@ Feature: CLI error reporting
|
||||
Given a recipe using a remote
|
||||
When I execute the recipe on unknown remote target
|
||||
Then the output must not contain "net-ssh"
|
||||
|
||||
Scenario: excludes ruby standard library from backtrace
|
||||
Given a recipe using a remote
|
||||
When I execute the recipe on unknown remote target
|
||||
Then the output must not contain ruby lib directory
|
||||
|
@@ -25,3 +25,7 @@ end
|
||||
Then /^the error output must contain exactly "([^"]+)"$/ do |content|
|
||||
assert_exact_output content, all_stderr
|
||||
end
|
||||
|
||||
Then /^the output must not contain ruby lib directory$/ do
|
||||
assert_no_partial_output RbConfig::CONFIG['rubylibdir'], all_output
|
||||
end
|
||||
|
Reference in New Issue
Block a user