test/unit/peddler/errors/test_error.rb in peddler-1.4.1 vs test/unit/peddler/errors/test_error.rb in peddler-1.5.0

- old
+ new

@@ -11,6 +11,12 @@ end def test_sets_cause assert_equal 'cause', @error.cause end + + def test_defines_common_errors + Peddler::Errors::KNOWN.each do |name| + assert ::Peddler::Errors.const_defined?(name) + end + end end