rubocop / guard-rubocop

Guard plugin for RuboCop
MIT License
262 stars 55 forks source link

Fix the test suite to run against latest Guard. #24

Closed ic closed 8 years ago

ic commented 8 years ago

The test suite works fine with Guard 2.1, but fails with Guard 2.13.

The failure comes from heavy refactoring in recent version of Guard, where static initialization is expected by the runtime. The init just does not happen when running the test suite.

guard-compat seems to address the problem, but it was not updated for a year at time of writing, and this commit is pretty simple in the end.

The tests remain untouched and all pass.

This seems an alternative to https://github.com/yujinakayama/guard-rubocop/pull/19

yujinakayama commented 8 years ago

:+1: