Sha256: aa5e7b436962394ade3a0d69a629517bb292c54f518af10d523eedc2c5a51853

Contents?: true

Size: 261 Bytes

Versions: 3

Compression:

Stored size: 261 Bytes

Contents

RSpec.describe ROM::Schema do
  describe '#to_h' do
    it 'returns hash with attributes' do
      attrs = { id: ROM::Types::Int, name: ROM::Types::String }
      schema = ROM::Schema.new(:name, attrs)

      expect(schema.to_h).to eql(attrs)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rom-2.0.2 spec/unit/rom/schema_spec.rb
rom-2.0.1 spec/unit/rom/schema_spec.rb
rom-2.0.0 spec/unit/rom/schema_spec.rb