Module: RSpec::RailsApp::Artifact::Matchers
- Defined in:
- lib/generator-spec/rspec/matchers/generate_artifacts.rb,
lib/generator-spec/rspec/matchers/generate_artifact.rb
Defined Under Namespace
Classes: GenerateArtifact, GenerateArtifacts
Instance Method Summary
collapse
Instance Method Details
#generate_artifact(name, type) ⇒ Object
14
15
16
|
# File 'lib/generator-spec/rspec/matchers/generate_artifact.rb', line 14
def generate_artifact name, type
GenerateArtifact.new name, type
end
|
#generate_artifacts(type, *names) ⇒ Object
14
15
16
|
# File 'lib/generator-spec/rspec/matchers/generate_artifacts.rb', line 14
def generate_artifacts type, *names
GenerateArtifacts.new type, *names
end
|
#generate_view(folder, action = nil, view_ext = nil) ⇒ Object
27
28
29
30
|
# File 'lib/generator-spec/rspec/matchers/generate_artifact.rb', line 27
def generate_view folder, action=nil, view_ext=nil
arg = {:folder => folder, :action => action, :view_ext => view_ext}
generate_artifact arg, :view
end
|
#generate_views(folder, *args) ⇒ Object
27
28
29
|
# File 'lib/generator-spec/rspec/matchers/generate_artifacts.rb', line 27
def generate_views folder, *args
generate_artifacts folder, *args
end
|