Sha256: b8b46c5954543632875ea8bae680f5a8aa3d57ee7add41bc48490806cb1903c8

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

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

        def is_satified_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.4 lib/core/received_criteria.rb
developwithpassion_fakes-rspec-0.0.3 lib/core/received_criteria.rb
developwithpassion_fakes-rspec-0.0.2 lib/core/received_criteria.rb
developwithpassion_fakes-rspec-0.0.1 lib/core/received_criteria.rb