class TestBelt::Matchers::HaveFiles::Matcher

Public Class Methods

new(file_path) click to toggle source
# File lib/test_belt/matchers/have_files.rb, line 20
def initialize(file_path)
  @file_path = file_path
end

Public Instance Methods

desc() click to toggle source
# File lib/test_belt/matchers/have_files.rb, line 24
def desc
  "have the file path '#{@file_path}'"
end
test() click to toggle source
# File lib/test_belt/matchers/have_files.rb, line 28
def test
  using(@file_path) do |path|
    assert File.exists?(path), "'#{path}' does not exist"
  end
end