Sha256: c66559c186151e546c3f717d1edecd713dd3bfd785d7556eacfcebe6ca599289
Contents?: true
Size: 540 Bytes
Versions: 27
Compression:
Stored size: 540 Bytes
Contents
require 'test_helper' class ResponseTest < Minitest::Test def test_initialize_success response = RateResponse.new(true, "success!", {:rate => 'Free!'}, :rates => [stub(:service_name => 'Free!', :total_price => 0)], :xml => "<rate>Free!</rate>") assert response.success? end def test_initialize_failure assert_raises(ActiveShipping::ResponseError) do RateResponse.new(false, "fail!", {:rate => 'Free!'}, :rates => [stub(:service_name => 'Free!', :total_price => 0)], :xml => "<rate>Free!</rate>") end end end
Version data entries
27 entries across 27 versions & 1 rubygems