if expectation['method'].nil? || expectation['method'] == 'eq'
                        result = (text == expectation['value'])
                                elsif expectation['method'] == 'regexp'
                        result = !(text.match Regexp.new(expectation['value'])).nil?
                    elsif expectation['method'] == 'ne'