Sha256: 89f5b050064d07e3f0cc9d6f4ecca5d99f077d597c4f31aa523deecc0b884282

Contents?: true

Size: 276 Bytes

Versions: 3

Compression:

Stored size: 276 Bytes

Contents

describe "Matcher::HaveItems" do
  it 'have passes when subject has the same number of items' do
    expect([1,2,3]).to have(3).items
  end

  it 'have fails when subject has the a different number of items' do
    expect_failure{ expect([1,2,3]).to have(10).items }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bacon-expect-1.0.2 spec_app/spec/matchers/have_items_spec.rb
bacon-expect-1.0.1 spec_app/spec/matchers/have_items_spec.rb
bacon-expect-0.1 spec_app/spec/matchers/have_items_spec.rb