Sha256: 93c9a4822341b9824bf9830bfe2fc66cc75b6e8a4c2d2431078ddc04c624b670
Contents?: true
Size: 645 Bytes
Versions: 27
Compression:
Stored size: 645 Bytes
Contents
RSpec.describe Epics::HPB do let(:client) { instance_double(Epics::Client, host_id: "HOST", user_id: "USER", partner_id: "PARTNER") } describe '#to_xml' do subject { Nokogiri::XML.parse(described_class.new(client).to_xml) } specify do expect(subject.xpath("//xmlns:Timestamp").first.content).to_not be_nil expect(subject.xpath("//xmlns:Nonce").first.content).to_not be_nil expect(subject.xpath("//xmlns:HostID").first.content).to eq("HOST") expect(subject.xpath("//xmlns:UserID").first.content).to eq("USER") expect(subject.xpath("//xmlns:PartnerID").first.content).to eq("PARTNER") end end end
Version data entries
27 entries across 27 versions & 1 rubygems