From 9c8dd60f923d3efdbb3f3ea24e0da923749128c5 Mon Sep 17 00:00:00 2001 From: Tero Tasanen Date: Sun, 14 Sep 2014 14:14:51 +0300 Subject: [PATCH] Fix test cases - Remove duplicate tests - use parse_html helper --- spec/oga/xml/parser/html_void_elements_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/oga/xml/parser/html_void_elements_spec.rb b/spec/oga/xml/parser/html_void_elements_spec.rb index 674fe4f..24a661e 100644 --- a/spec/oga/xml/parser/html_void_elements_spec.rb +++ b/spec/oga/xml/parser/html_void_elements_spec.rb @@ -31,20 +31,16 @@ describe Oga::XML::Parser do context 'void elements with different casing' do before :all do - @node_lc = parse('
', html: true).children[0] - @node_uc = parse('
', html: true).children[0] + @node_uc = parse_html('
').children[0] end example 'parse void elements with different casing' do - @node_lc.is_a?(Oga::XML::Element).should == true @node_uc.is_a?(Oga::XML::Element).should == true end example 'set the name of the void element to match casing' do - @node_lc.name.should == 'br' @node_uc.name.should == 'BR' end - end context 'void elements with attributes' do