Module: RSpec::RailsApp::Artifact::Matchers

Defined in:
lib/rails_app_spec/matchers/artifact/have_artifact.rb

Defined Under Namespace

Classes: HaveArtifact

Instance Method Summary collapse

Instance Method Details

#have_artifact(relative, type = nil) ⇒ Object Also known as: contain_artifact



132
133
134
# File 'lib/rails_app_spec/matchers/artifact/have_artifact.rb', line 132

def have_artifact(relative, type = nil)
  HaveArtifact.new(relative, type)
end

#have_view(folder, action = nil, view_ext = nil) ⇒ Object Also known as: contain_view



146
147
148
149
# File 'lib/rails_app_spec/matchers/artifact/have_artifact.rb', line 146

def have_view folder, action=nil, view_ext=nil      
  arg = {:folder => folder, :action => action, :view_ext => view_ext}
  have_artifact arg, :view
end