Sha256: 62c5f0da13d89680957ae2b40c48591cd40fee77204458e7beddcef8de287a48
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
RSpec.shared_examples_for "an RSpec matcher" do |options| let(:valid_value) { options.fetch(:valid_value) } let(:invalid_value) { options.fetch(:invalid_value) } it 'matches a valid value when using #== so it can be composed' do expect(matcher).to eq(valid_value) end it 'does not match an invalid value when using #== so it can be composed' do expect(matcher).not_to eq(invalid_value) end end
Version data entries
2 entries across 2 versions & 2 rubygems