Displaying 1 result from an estimated 1 matches for "test_charge_is_for_10_bucks".
2007 Jun 21
3
only checking certain parameters for a method
I''m writing a test where I only care about one of the parameters being sent
to the method, does anyone think having a way to say that any value for a
parameter which I don''t care about is valid? I''m thinking something like:
def test_charge_is_for_10_bucks
gateway = test_gateway
member = Member.new
member.credit_card_number = "1"
member.expiration_date = "9/19/2007"
member.payment_method = "bogus"
member.first_name = "Steve"
member.last_name = "Eichert"
member.expects(:...