Module: RSpec

Defined in:
lib/rspec_for_generators/matchers/file/generate_migration.rb,
lib/rspec_for_generators/main.rb,
lib/rspec_for_generators/main.rb,
lib/rspec_for_generators/rspec_test_case.rb,
lib/rspec_for_generators/generator_spec_helper.rb,
lib/rspec_for_generators/rails_helpers/rails_controller.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, Generators, Rails, RubyContent, RubyContentMatchers