rspec/rspec-core — pull request #721 by ruggeri (2012-11-04 13:49:03+00:00)
Title: RSpec fails when using --pattern when $PWD has a space

I think .shellescape rather than the pair of gsubs is what we want. Test extended.

Keep up the great work, rspec humans! Do what you do! :-)