Sha256: 0984fc6c62fa5abc9e92eafb62ce031f3d1d0fb2826b37efc416f781ff0f1d47

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

require 'spec_helper'

describe Restspec::Schema::Schema do
  Schema = Restspec::Schema::Schema

  it 'is only a bag for name and attributes that by default is a hash' do
    person_schema = Schema.new(:person)
    expect(person_schema.attributes).to eq({})
    expect(person_schema.name).to eq(:person)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 spec/restspec/schema/schema_spec.rb
restspec-0.0.3 spec/restspec/schema/schema_spec.rb
restspec-0.0.2 spec/restspec/schema/schema_spec.rb
restspec-0.0.1 spec/restspec/schema/schema_spec.rb