lib/restspec/schema/schema_example.rb in restspec-0.1 vs lib/restspec/schema/schema_example.rb in restspec-0.2

- old
+ new

@@ -14,21 +14,17 @@ # It returns the generated example. # @return [Restspec::Values::SuperHash] generated example. def value attributes.inject({}) do |sample, (_, attribute)| - if attribute.can_generate_examples? - sample.merge(attribute.name => AttributeExample.new(attribute).value) - else - sample - end + sample.merge(attribute.name => AttributeExample.new(attribute).value) end.merge(extensions) end private def attributes - schema.attributes + schema.attributes_for_intention end end end end