Permalink
Browse files

Added tracking fixtures.

  • Loading branch information...
1 parent 6cd0129 commit 2e1ea68633c3611b94fc8b04e28f8f924ffe948e Jimmy Baker committed with James MacAulay Dec 29, 2008
@@ -249,7 +249,7 @@ def response_hash_success?(xml_hash)
end
def response_hash_message(xml_hash)
- response_hash_success?(xml_hash) ? '' : 'broke' #"FedEx Error Code: #{xml_hash['Error']['Code'] || xml_hash['SoftError']['Code']}: #{xml_hash['Error']['Message'] || xml_hash['SoftError']['Message']}"
+ response_hash_success?(xml_hash) ? '' : "FedEx Error Code: #{xml_hash['Error']['Code'] || xml_hash['SoftError']['Code']}: #{xml_hash['Error']['Message'] || xml_hash['SoftError']['Message']}"
end
def commit(request, test = false)
View
@@ -1,6 +1,9 @@
usps:
- login: APIKey
-ups:
- key: XmlAccessKey
- login: UPSDotComLogin
- password: UPSDotComPassword
+ login: '018TAPEO3698'
+ups:
+ key: "3C359BDEC043F324"
+ login: "jimmyebaker"
+ password: "J27374eb"
+fedex:
+ login: '510087666'
+ password: '1250153'
@@ -3,10 +3,18 @@
class FedExTest < Test::Unit::TestCase
include ActiveMerchant::Shipping
+ def setup
+ @packages = fixtures(:packages)
+ @locations = fixtures(:locations)
+ @carrier = FedEx.new(
+ :login => 'login',
+ :password => 'password'
+ )
+ end
+
def test_initialize_options_requirements
assert_raises ArgumentError do FedEx.new end
assert_raises ArgumentError do FedEx.new(:account_number => '999999999') end
assert_raises ArgumentError do FedEx.new(:meter_number => '7777777') end
end
-
end

0 comments on commit 2e1ea68

Please sign in to comment.