Logo: Relish

  1. Sign in

Project: Aruba 0.8.1

Configure if ansi color codes should be stripped off from command output

As a developer
I want to strip off ansi color codes
In order to make checking of those outputs easier

Background
Given
I use the fixture "cli-app"
Scenarios
Default value
Given
a file named "features/support/aruba.rb" with:
Aruba.configure do |config|
  puts %(The default value is "#{config.keep_ansi}")
end
When
I successfully run cucumber
Then
the output should contain:
The default value is "false"
Modify value
Given
a file named "features/support/aruba.rb" with:
Aruba.configure do |config|
  config.keep_ansi = true
end
Then
I successfully run cucumber

Last published over 6 years ago by Max Meyer.