guard/guard-rspec — pull request #86 by midwire (2011-12-29 19:56:39+00:00)
Title: Fixed for results displaying more than once when specifying a formatter

The modified line was not taking into account a :cli formatting option like this: '--format=documentation' because the .include? test compares the entire line and not just the '--format' option specifier.

This fix greps for the format specifier at the beginning of the string and will disregard the '=' sign and anything that follows.

Best Regards, and thanks for an awesome project!