class Fakes::RSpec::ReceivedCriteria

Public Class Methods

new(the_call) click to toggle source
# File lib/fakes_rspec/received_criteria.rb, line 4
def initialize(the_call)
  @the_call = the_call
end

Public Instance Methods

is_satisfied_by(*args) click to toggle source
# File lib/fakes_rspec/received_criteria.rb, line 8
def is_satisfied_by(*args)
  return false if @the_call == nil
  return args.count == 0 ? true : @the_call.called_with(*args) != nil
end