public
Description: Shipping API extension for Active Merchant.
Clone URL: git://github.com/Shopify/active_shipping.git
Search Repo:
active_shipping / test / unit / response_test.rb
100644 18 lines (12 sloc) 0.408 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require File.dirname(__FILE__) + '/../test_helper'
 
class ResponseTest < Test::Unit::TestCase
  include ActiveMerchant::Shipping
  
  
  def setup
 
  end
 
  def test_initialize
    response = nil
    assert_nothing_raised do
      response = Response.new(true, "success!", {:rate => 'Free!'}, :rates => [stub(:service_name => 'Free!', :total_price => 0)], :xml => "<rate>Free!</rate>")
    end
    
  end
end