Sha256: 7d5f510cfedc6ed66cc001bd9562da47332ba040d3f1e97d17126dbec67fa6f5

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

module DevelopWithPassion
  module Fakes
    module RSpec
      describe BlockCriteria do
        context "when matching" do
          subject{BlockCriteria.new(lambda{|item| return item == 1})}
          it "should match if its block returns true" do
            subject.is_satisfied_by(1).should be_true
            subject.is_satisfied_by(2).should be_false
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
developwithpassion_fakes-rspec-0.0.8 spec/specs/block_criteria_spec.rb
developwithpassion_fakes-rspec-0.0.7 spec/specs/block_criteria_spec.rb
developwithpassion_fakes-rspec-0.0.6 spec/specs/block_criteria_spec.rb
developwithpassion_fakes-rspec-0.0.5 spec/specs/block_criteria_spec.rb