spec/support/savon_extensions.rb in afipws-1.3.2 vs spec/support/savon_extensions.rb in afipws-2.0.0
- old
+ new
@@ -22,17 +22,17 @@
HasXPath.new(paths)
end
class HasXPath
include RSpec::Matchers
-
+
def initialize(paths)
@paths = paths
end
-
+
def verify! xml
@actual_xml = xml
- @paths.each do |(path, value)|
+ @paths.each do |(path, value)|
@expected_xpath, @expected_value = path, value
@actual_xml.should match_xpath @expected_xpath, @expected_value
end
end
end