Sha256: d2bc9c2eaa29f4581e62d5e52dd577d595390d07ec4045f74bdf48de386d632f

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class GenericResponseTest < Test::Unit::TestCase
  include Shoppr
  
  context "When mapping generic response XML to ruby objects" do
    setup { @response = GenericResponse.from_xml(fixture_file('generic_response.xml')) }
    
    should "include server detail information" do
      @response.server_detail.api_version.should == '3.1 R21.4'
      @response.server_detail.api_env.should == 'sandbox'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoppr-0.1.1 test/shoppr/generic_response_test.rb
shoppr-0.1.0 test/shoppr/generic_response_test.rb