Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
RSpec base formatter #34
RSpec 2 allows you to use multiple formatters. I'm wanting to use a custom documentation formatter in my project along with CI reporter. However, the two ci_reporter formatters both delegate to either the documentation formatter or the base text formatter. This means if I make my own documentation formatter, I get the two outputs interleaved.
So I made a CI RSpec formatter that delegates to the base formatter. This will keep it from printing anything and interfering with my custom text formatters.
Though, I think for RSpec 2 at least, it might make sense to have the CI RSpec formatter not delegate at all, since the end user can use whatever other formatters as they want.