class HammerCLI::Testing::OutputMatchers::IndexMatcher
Public Class Methods
new(expected=[])
click to toggle source
# File lib/hammer_cli/testing/output_matchers.rb, line 60 def initialize(expected=[]) @line_matchers = [] expected.each do |line_expectation| @line_matchers << IndexLineMatcher.new(line_expectation) end end
Public Instance Methods
assert_match(actual)
click to toggle source
# File lib/hammer_cli/testing/output_matchers.rb, line 67 def assert_match(actual) @line_matchers.each do |matcher| matcher.assert_match(actual) end end