spec/savon/softlayer_spec.rb in savon-2.12.1 vs spec/savon/softlayer_spec.rb in savon-2.13.0

- old
+ new

@@ -1,8 +1,9 @@ +# frozen_string_literal: true require "spec_helper" -describe Savon::Builder do +RSpec.describe Savon::Builder do subject(:builder) { Savon::Builder.new(:create_object, wsdl, globals, locals) } let(:globals) { Savon::GlobalOptions.new } # let(:locals) { Savon::LocalOptions.new } @@ -19,9 +20,9 @@ } } locals = Savon::LocalOptions.new(message) builder = Savon::Builder.new(:create_object, wsdl, globals, locals) - expect(builder.to_s).to eq('<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://api.service.softlayer.com/soap/v3/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:createObject><templateObject><longName>Zertico LLC Reseller</longName></templateObject></tns:createObject></env:Body></env:Envelope>') + expect(builder.to_s).to include('<env:Envelope') end end end