Module: RSpec::FileMatchers
- Defined in:
- lib/rspec_for_generators/matchers/file/generate_file.rb,
lib/rspec_for_generators/matchers/file/generate_migration.rb
Defined Under Namespace
Classes: GenerateFile, GenerateMigration
Instance Method Summary
collapse
Instance Method Details
#generate_file(relative, type = nil) ⇒ Object
Also known as:
generate_directory
67
68
69
|
# File 'lib/rspec_for_generators/matchers/file/generate_file.rb', line 67
def generate_file(relative, type = nil)
GenerateFile.new(relative, type)
end
|
#generate_migration(relative) ⇒ Object
38
39
40
|
# File 'lib/rspec_for_generators/matchers/file/generate_migration.rb', line 38
def generate_migration(relative)
GenerateMigration.new(relative)
end
|