Sha256: bc6bd90c26b06df196ba4de3689b8d9e8339d6fd7bcc80a74211972af6d3acdf

Contents?: true

Size: 246 Bytes

Versions: 16

Compression:

Stored size: 246 Bytes

Contents

module Fakes
  module RSpec
    class BlockCriteria
      def initialize(condition_block)
        @condition_block = condition_block
      end
      def is_satisfied_by(item)
        return @condition_block.call(item)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fakes-rspec-2.1.0 lib/fakes_rspec/block_criteria.rb
fakes-rspec-2.0.0 lib/fakes_rspec/block_criteria.rb
fakes-rspec-1.0.6 lib/fakes_rspec/block_criteria.rb
fakes-rspec-1.0.5 lib/fakes_rspec/block_criteria.rb
fakes-rspec-1.0.4 lib/fakes_rspec/block_criteria.rb
fakes-rspec-1.0.2 lib/core/block_criteria.rb
fakes-rspec-1.0.0 lib/core/block_criteria.rb
fakes-rspec-0.4.1 lib/core/block_criteria.rb
fakes-rspec-0.4.0 lib/core/block_criteria.rb
fakes-rspec-0.3.8 lib/core/block_criteria.rb
fakes-rspec-0.3.2 lib/core/block_criteria.rb
fakes-rspec-0.3.1 lib/core/block_criteria.rb
fakes-rspec-0.1.3 lib/core/block_criteria.rb
fakes-rspec-0.1.2 lib/core/block_criteria.rb
fakes-rspec-0.1.1 lib/core/block_criteria.rb
fakes-rspec-0.1.0 lib/core/block_criteria.rb