Module: RSpec::RailsApp::ArtifactFile::Matchers

Defined in:
lib/rails_app_spec/matchers/artifact/have_artifact_file.rb,
lib/rails_app_spec/matchers/artifact/have_rails_artifact_file.rb,
lib/rails_app_spec/matchers/artifact/have_rails_artifact_files.rb

Defined Under Namespace

Classes: HaveRailsArtifactFile, HaveRailsArtifactFiles

Instance Method Summary collapse

Instance Method Details

#have_rails_artifact_file(relative, artifact_type = nil) ⇒ Object Also known as: contain_rails_artifact_file



38
39
40
# File 'lib/rails_app_spec/matchers/artifact/have_rails_artifact_file.rb', line 38

def have_rails_artifact_file(relative, artifact_type = nil)
  HaveRailsArtifactFile.new(relative, artifact_type)
end

#have_rails_artifact_files(artifact_type, *names) ⇒ Object Also known as: contain_rails_artifact_files



35
36
37
# File 'lib/rails_app_spec/matchers/artifact/have_rails_artifact_files.rb', line 35

def have_rails_artifact_files(artifact_type, *names)
  HaveRailsArtifactFiles.new(artifact_type, *names)
end

#have_view_file(folder, action = :show, view_ext = 'html.erb') ⇒ Object Also known as: contain_view_file



13
14
15
16
# File 'lib/rails_app_spec/matchers/artifact/have_artifact_file.rb', line 13

def have_view_file folder, action= :show, view_ext='html.erb'
  arg = {:folder => folder, :action => action, :view_ext => view_ext}
  have_rails_file arg, :view
end

#have_view_files(*args) ⇒ Object Also known as: contain_view_files



49
50
51
# File 'lib/rails_app_spec/matchers/artifact/have_rails_artifact_files.rb', line 49

def have_view_files *args
  have_rails_artifact_files :view, *args
end