test/unit/peddler/test_xml_parser.rb in peddler-1.6.3 vs test/unit/peddler/test_xml_parser.rb in peddler-1.6.4
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'helper'
require 'peddler/xml_parser'
class TestPeddlerXMLParser < MiniTest::Test
Parser = Class.new(::Peddler::XMLParser)
@@ -17,10 +19,10 @@
@parser = Parser.new(res)
end
def test_does_not_implement_parsing
- assert_raises NotImplementedError do
+ assert_raises(NotImplementedError) do
@parser.parse
end
end
def test_digs_data