[rspec-users] Metadata about formatter being used accessible in spec?

David Chelimsky dchelimsky at gmail.com
Fri Dec 3 21:15:52 EST 2010

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?

More information about the rspec-users mailing list