lib/minitest_to_rspec/input/subprocessors/base.rb
# Returns a s-expression representing an rspec-mocks stub.
Returns a s-expression representing an rspec-mocks stub.
Returns a s - expression representing an rspec - mocks stub .
def allow_to(msg_recipient, matcher, any_instance = false)
          allow_method = any_instance ? :allow_any_instance_of : :allow
          target = s(:call, nil, allow_method, msg_recipient)
          s(:call, target, :to, matcher)
        end
def allow_to ( msg_recipient , matcher , any_instance = false ) allow_method = any_instance ? :allow_any_instance_of : :allow target = s ( :call , nil , allow_method , msg_recipient ) s ( :call , target , :to , matcher ) end
Returns a s-expression representing an rspec-mocks stub.
Returns a s - expression representing an rspec - mocks stub .
msg_recipient
<not_specific>
matcher
<not_specific>
any_instance
<not_specific>