{"id":78116,"library":"rspec-collection-matchers","title":"RSpec Collection Matchers","description":"Collection cardinality matchers, extracted from rspec-expectations.","status":"active","version":"1.2.1","language":"ruby","source_language":null,"source_url":"https://github.com/rspec/rspec-collection_matchers","tags":["testing","matchers","rspec","collections"],"install":[{"cmd":"gem install rspec-collection_matchers","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'rspec-collection_matchers', '~> 1.2.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"RSpec::CollectionMatchers","correct":"require 'rspec/collection_matchers'"}],"quickstart":{"code":"require 'rspec/collection_matchers'\n\ndescribe [1, 2, 3] do\n  it { should have(3).items }\nend","lang":"ruby","description":"Use collection cardinality matchers in RSpec tests."},"warnings":[],"env_vars":null,"search_vec":"'cardin':5 'collect':2,4,15 'expect':11 'extract':7 'matcher':3,6,13 'rspec':1,10,14 'rspec-expect':9 'test':12","created_at":"2026-06-18T04:07:29.074748+00:00","updated_at":"2026-06-18T04:07:29.074748+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rspec/rspec-collection_matchers","github":"https://github.com/rspec/rspec-collection_matchers","docs":"http://www.rubydoc.info/gems/rspec-collection_matchers/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}