Module: RSpec::RailsApp::Artifact::Matchers
- Defined in:
- lib/rails_app_spec/matchers/artifact/have_artifact.rb,
lib/rails_app_spec/matchers/artifact/have_artifacts.rb
Defined Under Namespace
Classes: HaveArtifact, HaveArtifacts
Instance Method Summary
collapse
Instance Method Details
#have_artifact(relative, type = nil) ⇒ Object
Also known as:
contain_artifact
39
40
41
|
# File 'lib/rails_app_spec/matchers/artifact/have_artifact.rb', line 39
def have_artifact(relative, type = nil)
HaveArtifact.new(relative, type)
end
|
#have_artifacts(type, *names) ⇒ Object
67
68
69
|
# File 'lib/rails_app_spec/matchers/artifact/have_artifacts.rb', line 67
def have_artifacts(type, *names)
HaveArtifacts.new(type, *names)
end
|
#have_view(folder, action = nil, view_ext = nil) ⇒ Object
Also known as:
contain_view
53
54
55
56
|
# File 'lib/rails_app_spec/matchers/artifact/have_artifact.rb', line 53
def have_view folder, action=nil, view_ext=nil
arg = {:folder => folder, :action => action, :view_ext => view_ext}
have_artifact arg, :view
end
|
#have_views(folder, *args) ⇒ Object
82
83
84
|
# File 'lib/rails_app_spec/matchers/artifact/have_artifacts.rb', line 82
def have_views folder, *args
have_artifacts :view, *args
end
|