Displaying 1 result from an estimated 1 matches for "test_sends_sms_with_numb".
Did you mean:
test_sends_sms_with_number
2008 May 28
3
Mocking objects to test Rails Controllers
Hi all,
I''m currently considering the use of Mocha to aid in writing my Rails
unit/functional tests.
I currently have a Rails model which mixes in a series of methods to
allow it to talk to an external service. The code is roughly of this form:
class Person < ActiveRecord::Base
include SMSNotifier
def send_notification(message)
send_sms(number,message)
#