Class: Expectations::XmlString

Inherits:
String show all
Defined in:
lib/expectations/xml_string.rb

Instance Method Summary collapse

Methods inherited from String

#diff

Instance Method Details

#expectations_equal_to(other) ⇒ Object



3
4
5
# File 'lib/expectations/xml_string.rb', line 3

def expectations_equal_to(other)
  not Regexp.new(Regexp.escape(normalize(self))).match(normalize(other)).nil?
end

#inspectObject



7
8
9
# File 'lib/expectations/xml_string.rb', line 7

def inspect
  "[as xml] #{normalize(self)}"
end