bbatsov/rubocop — pull request #121 by yujinakayama (2013-05-04 17:40:38+00:00)
Title: Fix random failure spec

This is about the random failure specs for interruption with Ctrl-C, failed in #120.
https://travis-ci.org/bbatsov/rubocop/jobs/6877252

The specs were testing real behavior by running rubocop as a child process.
However it seems to be unstable and also cannot be measured in coverage report.
So rewrote them to run in another thread with some stubs and mocks.

I've run rewroted specs 100 times and no failure on OS X 10.8.3 and Travis.
https://travis-ci.org/yujinakayama/rubocop/builds/6883265