Piotr Zolnierek
2010-Dec-02 10:53 UTC
[rspec-users] Metadata about formatter being used accessible in spec?
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?
David Chelimsky
2010-Dec-04 02:15 UTC
[rspec-users] Metadata about formatter being used accessible in spec?
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?