Sha256: 1acf2c0c98825ae835c06c432f631dab28665a5658ae83efcf3ba9a581c242bc

Contents?: true

Size: 240 Bytes

Versions: 1

Compression:

Stored size: 240 Bytes

Contents

require "spec_helper"

describe AltStruct::Behavior do
  let(:pairs) { { a: 1, b: 2, c: 3} }
  let(:astruct) { ExampleAltStruct.new(pairs) }

  it "reponds to each key as a method" do
    expect(astruct).to have_attributes(pairs)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
astruct-3.0.0 spec/lib/astruct/behavior_spec.rb