Sha256: ae3d77903bea04331683d8bd39a91aa1bed018b8b99c5aea06152bee2a977014

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

require 'spec_helper'

describe Bling::API::Record do

  it 'create readers to each hash key' do
    params = { name: 'Bilbo', age: 111 }
    hobbit = Bling::API::Record.new(params)
    expect(hobbit.name).to eq 'Bilbo'
    expect(hobbit.age).to eq 111
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bling-ruby-api-0.0.1 spec/lib/bling/api/record_spec.rb