Sha256: 5af78e15c9a22f3889ea9147cbbab60dd7c558d60aca40dcea8231cd218bc4f0
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
require 'unit_test_helper' class PaymentServiceTest < Test::Unit::TestCase include TestHelper def setup @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET) end context "response parsing" do it "parses default attributes" do @instance = Xeroizer::Record::PaymentServiceModel.new(nil, "PaymentService") some_xml = get_record_xml("payment_service") result = @instance.parse_response(some_xml) payment_service = result.response_items.first keys = [:payment_service_id, :payment_service_name, :payment_service_type, :payment_service_url, :pay_now_text ] assert_equal(payment_service.attributes.keys, keys) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-3-pre-beta-3.0.0.pre.beta | test/unit/models/payment_service_test.rb |