Permalink
Browse files

Merge pull request #11 from daemianmack/patch-1

Make the migration matcher fail if passed a bad filename
  • Loading branch information...
2 parents ccd97c3 + 9b5229b commit b84bba0f905b94cc93a208ec5050de75e4170faf @stevehodgkiss committed Nov 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generator_spec/matcher.rb
@@ -43,7 +43,7 @@ def matches?(root)
file_name = migration_file_name(root, @name)
unless file_name && file_name.exist?
- throw :failure, file_name
+ throw :failure, @name
end
check_contents(file_name)

0 comments on commit b84bba0

Please sign in to comment.