Module: Yast::RSpec::Matchers

Defined in:
src/ruby/yast/rspec/matchers.rb

Overview

RSpec extension to add YaST-specific matchers

Instance Method Summary collapse

Instance Method Details

#path_matching(match) ⇒ Object

Matches arguments of type YaST::Path whose string representation matches the provided regular expression

Examples:

expect(Yast::SCR).to receive(:Read).with(path_matching(/^\.sysconfig\.nfs/))


13
14
15
# File 'src/ruby/yast/rspec/matchers.rb', line 13

def path_matching(match)
  PathMatchingMatcher.new(match)
end