Sha256: 602477cf3c04378d02fcffb20a670b36246601fa1fbd54d04bf129aa4a9ddb92
Contents?: true
Size: 445 Bytes
Versions: 33
Compression:
Stored size: 445 Bytes
Contents
Then /^the output DOM should be:$/ do |expected_html| expected_rendered = '' actual_rendered = '' formatter = StripFormatter.new # wrap in html tag, as REXML gets grumpy if there's more than one root node formatter.write(REXML::Document.new("<html>#{expected_html}</html>"), expected_rendered) formatter.write(REXML::Document.new("<html>#{@rendered_dom}</html>"), actual_rendered) actual_rendered.should eq(expected_rendered) end
Version data entries
33 entries across 33 versions & 1 rubygems