Sha256: 3b6f98c19fd09a915663e9f5ece89ddef28c878cf55d7fa0f39c7773edcf4d60
Contents?: true
Size: 792 Bytes
Versions: 9
Compression:
Stored size: 792 Bytes
Contents
require 'helper' require 'lolsoap/envelope' require 'lolsoap/request' module LolSoap describe Request do let(:wsdl) { WSDL.parse(File.read(TEST_ROOT + '/fixtures/stock_quote.wsdl')) } let(:operation) { wsdl.operation('GetLastTradePrice') } let(:envelope) { Envelope.new(wsdl, operation) } subject { Request.new(envelope) } it 'should put together a HTTP request' do subject.url.must_equal "http://example.com/stockquote" subject.headers['SOAPAction'].must_equal "http://example.com/GetLastTradePrice" subject.content.empty?.must_equal false end it 'sets the encoding' do subject.content.start_with?(%(<?xml version="1.0" encoding="UTF-8"?>)).must_equal true subject.content.encoding.must_equal Encoding::UTF_8 end end end
Version data entries
9 entries across 9 versions & 1 rubygems