spec/xml_examples.rb in ruby-sslyze-1.1.0 vs spec/xml_examples.rb in ruby-sslyze-1.2.0
- old
+ new
@@ -3,7 +3,10 @@
shared_examples_for "XML specs" do
let(:path) { File.expand_path('spec/sslyze.xml') }
let(:xml) { Nokogiri::XML(open(path)) }
- subject { SSLyze::XML.new(xml) }
+ let(:xpath) { '/' }
+ let(:node) { xml.at_xpath(xpath) }
+
+ subject { described_class.new(node) }
end