Class: GeneratorSpec::Matcher::Migration
- Defined in:
- lib/generator_spec/matcher.rb
Instance Method Summary collapse
Methods inherited from File
Constructor Details
This class inherits a constructor from GeneratorSpec::Matcher::File
Instance Method Details
#matches?(root) ⇒ Boolean
42 43 44 45 46 47 48 49 50 |
# 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 |