Fix failing tests in rails4

In rails4, `run_generator` seems to be run with clean env.
thor couldn't raise error against expectation without this debug option .

This patch fixes some failing tests using `assert_raise`.