google4r-checkout 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,54 @@
1
+ require 'google4r/checkout'
2
+
3
+ require 'test/frontend_configuration'
4
+ #--
5
+ # Project: google_checkout4r
6
+ # File: test/unit/tracking_data_test.rb
7
+ # Author: Tony Chan <api.htchan at gmail dot com>
8
+ # Copyright: (c) 2007 by Manuel Holtgrewe
9
+ # License: MIT License as follows:
10
+ #
11
+ # Permission is hereby granted, free of charge, to any person obtaining
12
+ # a copy of this software and associated documentation files (the
13
+ # "Software"), to deal in the Software without restriction, including
14
+ # without limitation the rights to use, copy, modify, merge, publish,
15
+ # distribute, sublicense, and/or sell copies of the Software, and to permit
16
+ # persons to whom the Software is furnished to do so, subject to the
17
+ # following conditions:
18
+ #
19
+ # The above copyright notice and this permission notice shall be included
20
+ # in all copies or substantial portions of the Software.
21
+ #
22
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23
+ # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
+ # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26
+ # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
28
+ # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
+ #++
30
+
31
+ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
32
+
33
+ require 'google4r/checkout'
34
+
35
+ require 'test/frontend_configuration'
36
+
37
+ # Test for the class TrackingData.
38
+ class Google4R::Checkout::TrackingDataTest < Test::Unit::TestCase
39
+ include Google4R::Checkout
40
+
41
+ def setup
42
+ @tracking_data = TrackingData.new('UPS', '1234')
43
+ end
44
+
45
+ def test_initialization_works
46
+ assert_kind_of TrackingData, @tracking_data
47
+ end
48
+
49
+ def test_responds_correctly
50
+ [ :carrier, :tracking_number].each do |sym|
51
+ assert_respond_to @tracking_data, sym
52
+ end
53
+ end
54
+ end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: google4r-checkout
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.2
7
- date: 2007-09-25 00:00:00 -07:00
6
+ version: 1.0.3
7
+ date: 2008-08-12 00:00:00 -07:00
8
8
  summary: Ruby library to access the Google Checkout service and implement notification handlers.
9
9
  require_paths:
10
10
  - lib
@@ -27,13 +27,14 @@ signing_key:
27
27
  cert_chain:
28
28
  post_install_message:
29
29
  authors:
30
- - Manuel Holtgrewe
30
+ - Tony Chan
31
31
  files:
32
32
  - lib/google4r/checkout/commands.rb
33
33
  - lib/google4r/checkout/frontend.rb
34
34
  - lib/google4r/checkout/merchant_calculation.rb
35
35
  - lib/google4r/checkout/notifications.rb
36
36
  - lib/google4r/checkout/shared.rb
37
+ - lib/google4r/checkout/utils.rb
37
38
  - lib/google4r/checkout/xml_generation.rb
38
39
  - lib/google4r/checkout.rb
39
40
  - var/cacert.pem
@@ -50,8 +51,11 @@ test_files:
50
51
  - test/unit/area_test.rb
51
52
  - test/unit/authorization_amount_notification_test.rb
52
53
  - test/unit/authorize_order_command_test.rb
54
+ - test/unit/backorder_items_command_test.rb
53
55
  - test/unit/callback_handler_test.rb
56
+ - test/unit/cancel_items_command_test.rb
54
57
  - test/unit/cancel_order_command_test.rb
58
+ - test/unit/carrier_calculated_shipping_test.rb
55
59
  - test/unit/charge_amount_notification_test.rb
56
60
  - test/unit/charge_order_command_test.rb
57
61
  - test/unit/chargeback_amount_notification_test.rb
@@ -60,8 +64,10 @@ test_files:
60
64
  - test/unit/command_test.rb
61
65
  - test/unit/deliver_order_command_test.rb
62
66
  - test/unit/delivery_method_test.rb
67
+ - test/unit/digital_content_test.rb
63
68
  - test/unit/flat_rate_shipping_test.rb
64
69
  - test/unit/frontend_test.rb
70
+ - test/unit/item_info_test.rb
65
71
  - test/unit/item_test.rb
66
72
  - test/unit/marketing_preferences_test.rb
67
73
  - test/unit/merchant_calculated_shipping_test.rb
@@ -80,12 +86,16 @@ test_files:
80
86
  - test/unit/private_data_parser_test.rb
81
87
  - test/unit/refund_amount_notification_test.rb
82
88
  - test/unit/refund_order_command_test.rb
89
+ - test/unit/reset_items_shipping_information_command_test.rb
90
+ - test/unit/return_items_command_test.rb
83
91
  - test/unit/risk_information_notification_test.rb
84
92
  - test/unit/send_buyer_message_command_test.rb
93
+ - test/unit/ship_items_command_test.rb
85
94
  - test/unit/shipping_adjustment_test.rb
86
95
  - test/unit/shopping_cart_test.rb
87
96
  - test/unit/tax_rule_test.rb
88
97
  - test/unit/tax_table_test.rb
98
+ - test/unit/tracking_data_test.rb
89
99
  - test/unit/unarchive_order_command_test.rb
90
100
  - test/unit/us_country_area_test.rb
91
101
  - test/unit/us_state_area_test.rb