Module: Foodtaster::RSpec::Matchers::MatcherMethods
- Defined in:
- lib/foodtaster/rspec/matchers/file_matcher.rb,
lib/foodtaster/rspec/matchers/user_matcher.rb
Instance Method Summary collapse
- #have_file(path) ⇒ Object (also: #have_directory)
- #have_user(username) ⇒ Object
Instance Method Details
#have_file(path) ⇒ Object Also known as: have_directory
78 79 80 |
# File 'lib/foodtaster/rspec/matchers/file_matcher.rb', line 78 def have_file(path) FileMatcher.new(path) end |
#have_user(username) ⇒ Object
57 58 59 |
# File 'lib/foodtaster/rspec/matchers/user_matcher.rb', line 57 def have_user(username) UserMatcher.new(username) end |