Module: RSpec
- Defined in:
- lib/generator_spec/matchers/file/generate_migration.rb,
lib/generator_spec/main.rb,
lib/generator_spec/main.rb,
lib/generator_spec/main.rb,
lib/generator_spec/rails_helpers/rails_controller.rb,
lib/generator_spec/matchers/content/content_matcher.rb
Overview
This method manipulates the given path and tries to find any migration which matches the migration name. For example, the call above is converted to:
generator.should generate_migration "db/migrate/003_create_products.rb"
Consequently it accepts the same arguments as the matcher have_file.
Defined Under Namespace
Modules: Core, FileMatchers, Generator, Rails, RubyContent, RubyContentMatchers Classes: RubyContentMatcher