module ChefSpec::API::EcomDevMatcherMultilineString

Public Instance Methods

contain_full_line(match) click to toggle source
# File lib/ecomdev/chefspec/api/matchers/multiline_string.rb, line 22
def contain_full_line(match)
  EcomDev::ChefSpec::Helpers::StringMatcher.instance_eval do
    matcher(regexp(match, '^\s*', '\s*$'))
  end
end
contain_line(match) click to toggle source
# File lib/ecomdev/chefspec/api/matchers/multiline_string.rb, line 16
def contain_line(match)
  EcomDev::ChefSpec::Helpers::StringMatcher.instance_eval do
    matcher(regexp(match, '^.*', '.*$'))
  end
end
end_line_with(match) click to toggle source
# File lib/ecomdev/chefspec/api/matchers/multiline_string.rb, line 10
def end_line_with(match)
  EcomDev::ChefSpec::Helpers::StringMatcher.instance_eval do
      matcher(regexp(match, '', '$'))
  end
end
start_line_with(match) click to toggle source
# File lib/ecomdev/chefspec/api/matchers/multiline_string.rb, line 4
def start_line_with(match)
  EcomDev::ChefSpec::Helpers::StringMatcher.instance_eval do
    matcher(regexp(match, '^'))
  end
end