Module: RSpec

Defined in:
lib/rspec_for_generators/matchers/file/generate_file.rb,
lib/rspec_for_generators/rspec_test_case.rb,
lib/rspec_for_generators/generator_spec_helper.rb,
lib/rspec_for_generators/matchers/helpers/file.rb,
lib/rspec_for_generators/rails_helpers/rails_app.rb,
lib/rspec_for_generators/matchers/helpers/content.rb,
lib/rspec_for_generators/rails_helpers/rails_view.rb,
lib/rspec_for_generators/rails_helpers/rails_helper.rb,
lib/rspec_for_generators/rails_helpers/rails_mailer.rb,
lib/rspec_for_generators/matchers/content/have_class.rb,
lib/rspec_for_generators/matchers/content/have_method.rb,
lib/rspec_for_generators/matchers/content/have_module.rb,
lib/rspec_for_generators/matchers/content/inherit_from.rb,
lib/rspec_for_generators/rails_helpers/rails_controller.rb,
lib/rspec_for_generators/matchers/content/include_module.rb,
lib/rspec_for_generators/matchers/file/generate_migration.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: FileMatchers, Generator, Generators, Rails, RubyContent, RubyContentMatchers