spec/praxis-blueprints/blueprint_spec.rb in praxis-blueprints-3.4 vs spec/praxis-blueprints/blueprint_spec.rb in praxis-blueprints-3.5

- old
+ new

@@ -419,6 +419,19 @@ output.keys.should == [:full_name] end end end end + + context '.as_json_schema' do + it 'delegates to the attribute type' do + Person.attribute.type.should receive(:as_json_schema) + Person.as_json_schema + end + end + context '.json_schema_type' do + it 'delegates to the attribute type' do + Person.attribute.type.should receive(:json_schema_type) + Person.json_schema_type + end + end end