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

Version Path
dryml-2.2.6 features/step_definitions/dom_comparison.rb
dryml-2.2.5 features/step_definitions/dom_comparison.rb
dryml-2.2.4 features/step_definitions/dom_comparison.rb
dryml-2.2.3 features/step_definitions/dom_comparison.rb
dryml-2.2.2 features/step_definitions/dom_comparison.rb
dryml-2.2.1 features/step_definitions/dom_comparison.rb
dryml-2.2.0 features/step_definitions/dom_comparison.rb
dryml-2.1.2 features/step_definitions/dom_comparison.rb
dryml-2.1.1 features/step_definitions/dom_comparison.rb
dryml-2.1.0 features/step_definitions/dom_comparison.rb
dryml-2.1.0.pre4 features/step_definitions/dom_comparison.rb
dryml-2.1.0.pre3 features/step_definitions/dom_comparison.rb
dryml-2.1.0.pre2 features/step_definitions/dom_comparison.rb
dryml-2.1.0.pre1 features/step_definitions/dom_comparison.rb
dryml-2.0.1 features/step_definitions/dom_comparison.rb
dryml-2.0.0 features/step_definitions/dom_comparison.rb
dryml-2.0.0.pre10 features/step_definitions/dom_comparison.rb
dryml-2.0.0.pre9 features/step_definitions/dom_comparison.rb
dryml-2.0.0.pre8 features/step_definitions/dom_comparison.rb
dryml-2.0.0.pre7 features/step_definitions/dom_comparison.rb