class GeneratorSpec::Matcher::Migration

Public Instance Methods

matches?(root) click to toggle source
# File lib/generator_spec/matcher.rb, line 42
def matches?(root)
  file_name = migration_file_name(root, @name)
  
  unless file_name && file_name.exist?
    throw :failure, @name
  end
  
  check_contents(file_name)
end