Closed johnrees closed 10 years ago
@johnrees - Authority lets you give it a logger object and it uses that to call logger.warn
, logger.info
, etc. If you're using Rails, you'd do this in your config/initializers/authority.rb
file, copied from this template when you run rails g authority:install
: https://github.com/nathanl/authority/blob/master/lib/generators/templates/authority_initializer.rb
As the config file shows, you can use config.logger = Logger.new('/dev/null')
to have Authority discard all such messages. In your case, you might want to wrap that in a conditional so it only happens in your test environment.
Don't know how I missed that. Perfect. Thanks!
If I have this feature spec
spec/features/brands/adding_a_brand.rb
It will pass, but I will get the following WARN message in my logs
Is there a way to suppress these warnings?