stevehodgkiss/generator_spec — pull request #11 by daemianmack (2012-11-23 20:48:31+00:00)
Title: Make the migration matcher fail if passed a bad filename

If a migration file is found not to exist, its name is set to nil, and this is thrown up the stack as a failure at matcher.rb#L46.

This then gets interpreted as a successful match at matcher.rb#L129.

Avoid this by returning the requested @name to trigger a failed match.