Is it possible to read which formatter is being used? For instance if -
f d is used to output additional information or is there a better way
to do that?
On Dec 2, 2010, at 4:53 AM, Piotr Zolnierek wrote:
Is it possible to read which formatter is being used? For instance if -
f d is used to output additional information or is there a better way
to do that?
For now you can get it from RSpec.configuration.formatter, but that is
a) unofficial and b) likely to change in future versions when rspec-core
supports multiple formatters.
What sort of info are you trying to output?