Sha256: 9f4e6b436a39cb63133d30b3193fa6e83a675eeea5e14f8e256d78b5366201a9

Contents?: true

Size: 304 Bytes

Versions: 16

Compression:

Stored size: 304 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

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