Class: Expectations::XmlString
- Defined in:
- lib/expectations/xml_string.rb
Instance Method Summary collapse
Methods inherited from String
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 |
#inspect ⇒ Object
7 8 9 |
# File 'lib/expectations/xml_string.rb', line 7 def inspect "[as xml] #{normalize(self)}" end |