spec/enum_spec.rb in strong_json-2.1.0 vs spec/enum_spec.rb in strong_json-2.1.1

- old
+ new

@@ -27,19 +27,19 @@ StrongJSON::Type::Object.new( { id: StrongJSON::Type::Literal.new("id1"), value: StrongJSON::Type::Base.new(:string) }, - on_unknown: :raise, + on_unknown: :reject, exceptions: Set[] ), StrongJSON::Type::Object.new( { id: StrongJSON::Type::Base.new(:string), value: StrongJSON::Type::Base.new(:symbol) }, - on_unknown: :raise, + on_unknown: :reject, exceptions: Set[] ), StrongJSON::Type::Optional.new(StrongJSON::Type::Literal.new(3)), StrongJSON::Type::Literal.new(false), ] @@ -71,20 +71,20 @@ StrongJSON::Type::Object.new( { regexp: StrongJSON::Type::Base.new(:string), option: StrongJSON::Type::Base.new(:string), }, - on_unknown: :raise, + on_unknown: :reject, exceptions: Set[] ) } let(:literal_pattern) { StrongJSON::Type::Object.new( { literal: StrongJSON::Type::Base.new(:string) }, - on_unknown: :raise, + on_unknown: :reject, exceptions: Set[] ) } let(:type) {