views:

16

answers:

0

In this usps ruby gem, how should we write the following address specs:

it "should build the HTTP request" # given a hard-coded address
it "should parse the XML response" # given a hard-coded response

I know how to get the specs to work by breaking the standardize function up into parts, but I don't want to do that because it's unnecessary. Is there anyway to test that part of a function is working properly? If so, how?