class GeneratorSpec::Matcher::Migration

Public Instance Methods

description() click to toggle source
# File lib/generator_spec/matcher.rb, line 58
def description
  'valid migration file'
end
matches?(root) click to toggle source
# File lib/generator_spec/matcher.rb, line 62
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