spec/schema_spec.rb in paradocs-1.0.24 vs spec/schema_spec.rb in paradocs-1.1.0
- old
+ new
@@ -30,10 +30,10 @@
end
end
describe "#structure" do
it "represents data structure and meta data" do
- sc = subject.structure
+ sc = subject.structure.nested
expect(sc[:title][:present]).to be true
expect(sc[:title][:type]).to eq :string
expect(sc[:price][:type]).to eq :integer
expect(sc[:price][:label]).to eq "A price"
expect(sc[:variants][:type]).to eq :array