spec/send_letter_spec.rb in postalmethods-1.0.1 vs spec/send_letter_spec.rb in postalmethods-1.1.0
- old
+ new
@@ -29,18 +29,17 @@
#it "should raise the proper exception when trying to send no description" do
# @client.prepare!
# lambda {@client.send_letter(@doc, nil)}.should raise_error(PostalMethods::APIStatusCode3004Exception)
#end
-
end
describe "Send Letter With Address" do
before :each do
@doc = open(File.dirname(__FILE__) + '/../spec/doc/sample.pdf')
- @addr = {:AttentionLine1 => "The Fonz", :Address1 => "Happy Days", :City => "Baja", :State => "CA",
- :PostalCode => "90210", :Country => "USA"}
+ @addr = {:AttentionLine1 => "George Washington", :Address1 => "The White House", :Address2 => "1600 Pennsylvania Ave",
+ :City => "Washington", :State => "DC", :PostalCode => "20500", :Country => "USA"}
@client = PostalMethods::Client.new(PM_OPTS)
end
it "should instantiate and send a letter with address" do
@client.prepare!