spec/json_spec.rb in strong_json-1.1.0 vs spec/json_spec.rb in strong_json-2.0.0
- old
+ new
@@ -1,10 +1,10 @@
require "strong_json"
describe "StrongJSON.new" do
it "tests the structure of a JSON object" do
s = StrongJSON.new do
- let :item, object(name: string, count: numeric, price: numeric).ignore(Set.new([:comment]))
+ let :item, object(name: string, count: numeric, price: numeric).ignore(:comment)
let :items, array(item)
let :checkout,
object(items: items,
change: optional(number),
type: enum(literal(1), symbol),