Logo: Relish

  1. Sign in

Project: Aruba 0.8.1

Configure Log level of aruba logger

As a developer
I want to configure the level of information put to output by logger
In order to modify the amount of information

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.log_level}")
end
When
I successfully run cucumber
Then
the output should contain:
The default value is "info"
Modify value
Given
a file named "features/support/aruba.rb" with:
Aruba.configure do |config|
  config.log_level = :warn
end

Aruba.configure do |config|
  puts %(The default value is "#{config.log_level}")
end
Then
I successfully run cucumber
Then
the output should contain:
The default value is "warn"

Last published over 6 years ago by Max Meyer.