Method: RSpec::Matchers#exist

Defined in:
lib/rspec/matchers.rb

#exist(*args) ⇒ Object Also known as: an_object_existing, existing

Passes if actual.exist? or actual.exists?

Examples:

expect(File).to exist("path/to/file")


596
597
598
# File 'lib/rspec/matchers.rb', line 596

def exist(*args)
  BuiltIn::Exist.new(*args)
end