Sha256: 085bd7e92f7208aa61ca7d26f83457c93ab34495014c2d3dde75085b31f43a35

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

shared_examples_for "metadata hash builder" do
  let(:hash) { metadata_hash(:foo, :bar, :bazz => 23) }

  it 'treats symbols as metadata keys with a true value' do
    expect(hash[:foo]).to be(true)
    expect(hash[:bar]).to be(true)
  end

  it 'still processes hash values normally' do
    expect(hash[:bazz]).to be(23)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-core-3.0.0.beta1 spec/support/shared_example_groups.rb