Sha256: eb5b3d6996623eefaa4ca5ab61225337c926f003f1d4e03ef2e6de367df1edb7

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

require 'spec_helper'

module Fakes
  describe BlockArgMatcher do
    context "when determining if it matches a value" do
      let(:sut){BlockArgMatcher.new(lambda{|item| true})}
      
      it "should decide by using its provided block" do
        expect(sut.matches?(2)).to be_true
      end
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fakes-1.1.6 spec/specs/block_arg_matcher_spec.rb
fakes-1.1.5 spec/specs/block_arg_matcher_spec.rb