Sha256: 4616a08b86c6af6f57d3d0981da4837197f02e19b9df5556001441b7ba8b0f89
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
module RSpec def self.create_received_criteria_from(the_call) return DevelopWithPassion::Fakes::RSpec::ReceivedCriteria.new(the_call) end def self.create_received_occurences_criteria_from(the_call,occurence) return DevelopWithPassion::Fakes::RSpec::ReceivedOccurencesCriteria.new(create_received_criteria_from(the_call),the_call,occurence) end Matchers.define :have_received do|symbol,*args| match do|the_fake| RSpec.create_received_criteria_from(the_fake.received(symbol)).is_satisfied_by(*args) end end Matchers.define :have_received_occurences do|occurence,symbol,*args| match do|the_fake| RSpec.create_received_occurences_criteria_from(the_fake.received(symbol),occurence).is_satisfied_by(*args) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
developwithpassion_fakes-rspec-0.0.7 | lib/core/rspec_utils.rb |
developwithpassion_fakes-rspec-0.0.6 | lib/core/rspec_utils.rb |
developwithpassion_fakes-rspec-0.0.5 | lib/core/rspec_utils.rb |