spec/restspec/schema/schema_example_spec.rb in restspec-0.1 vs spec/restspec/schema/schema_example_spec.rb in restspec-0.2
- old
+ new
@@ -17,19 +17,9 @@
context 'without extensions' do
let(:schema_example) { SchemaExample.new(schema) }
it { should eq(name: 'name', age: 18)}
-
- context 'with an attribute not allowed to generate examples' do
- before do
- schema.attributes['hidden'] = Attribute.new(:hidden, hidden_type, :for => [:checks])
- end
-
- it 'does not include the hidden attribute' do
- expect(subject).to_not include(:hidden)
- end
- end
end
context 'with extensions' do
let(:extensions) { Hash[age: 21] }
let(:schema_example) { SchemaExample.new(schema, extensions) }