Sha256: 75b1c8c02a794256387b3bb56a812da723f0b18151ed223abb0a4d7eea39252d

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

module DevelopWithPassion
  module Fakes
    module RSpec
      class ReceivedCriteria
        def initialize(the_call)
          @the_call = the_call
        end

        def is_satisfied_by(*args)
          return false if @the_call == nil
          return args.count == 0 ? true : @the_call.called_with(*args) != nil
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
developwithpassion_fakes-rspec-0.0.8 lib/core/received_criteria.rb
developwithpassion_fakes-rspec-0.0.7 lib/core/received_criteria.rb
developwithpassion_fakes-rspec-0.0.6 lib/core/received_criteria.rb
developwithpassion_fakes-rspec-0.0.5 lib/core/received_criteria.rb