class Grasshopper::StubHelper

Public Class Methods

new(stub, message) click to toggle source
# File lib/grasshopper/stub.rb, line 31
def initialize(stub, message)
  @stub = stub
  @message = message
end

Public Instance Methods

then_return(retval) click to toggle source
# File lib/grasshopper/stub.rb, line 36
def then_return(retval)
  @stub.add_a_stub(@message, retval)
end