Module: RSpec::FileMatchers

Defined in:
lib/file-spec.rb,
lib/file_spec/matchers/have_dir.rb,
lib/file_spec/matchers/have_dir.rb,
lib/file_spec/matchers/have_file.rb,
lib/file_spec/matchers/have_file.rb,
lib/file_spec/matchers/have_symlink.rb,
lib/file_spec/matchers/have_symlink.rb,
lib/file_spec/matchers/abstract/have_file_item.rb,
lib/file_spec/matchers/abstract/have_file_items.rb

Defined Under Namespace

Classes: HaveDir, HaveDirs, HaveFile, HaveFileItem, HaveFileItems, HaveFiles, HaveSymlink, HaveSymlinks

Instance Method Summary collapse

Instance Method Details

#have_dir(dir) ⇒ Object



9
10
11
# File 'lib/file_spec/matchers/have_dir.rb', line 9

def have_dir(dir)
  HaveDir.new(dir)
end

#have_dirs(*dirs) ⇒ Object



22
23
24
# File 'lib/file_spec/matchers/have_dir.rb', line 22

def have_dirs(*dirs)
  HaveDirs.new(dirs)
end

#have_file(*args) ⇒ Object Also known as: contain_file



9
10
11
# File 'lib/file_spec/matchers/have_file.rb', line 9

def have_file(*args)
  HaveFile.new(args)
end

#have_file_items(*args) ⇒ Object



74
75
76
# File 'lib/file_spec/matchers/abstract/have_file_items.rb', line 74

def have_file_items(*args)
  HaveFileItems.new(args)
end

#have_files(*args) ⇒ Object Also known as: contain_files



23
24
25
# File 'lib/file_spec/matchers/have_file.rb', line 23

def have_files(*args)
  HaveFiles.new(args)
end


9
10
11
# File 'lib/file_spec/matchers/have_symlink.rb', line 9

def have_symlink(*args)
  HaveSymlink.new(args)
end


19
20
21
# File 'lib/file_spec/matchers/have_symlink.rb', line 19

def have_symlink_dir(*args)
  have_symlink args, :type => :dir
end


44
45
46
# File 'lib/file_spec/matchers/have_symlink.rb', line 44

def have_symlink_dirs(*args)
  have_symlinks args, :type => :dir
end


14
15
16
# File 'lib/file_spec/matchers/have_symlink.rb', line 14

def have_symlink_file(*args)
  have_symlink args, :type => :file
end


39
40
41
# File 'lib/file_spec/matchers/have_symlink.rb', line 39

def have_symlink_files(*args)
  have_symlinks args, :type => :file
end


34
35
36
# File 'lib/file_spec/matchers/have_symlink.rb', line 34

def have_symlinks(*args)
  HaveSymlinks.new(args)
end