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

Version Path
epics-2.4.0 spec/hpb_spec.rb
epics-2.3.0 spec/hpb_spec.rb
epics-2.2.0 spec/hpb_spec.rb
epics-2.1.2 spec/hpb_spec.rb
epics-2.1.1 spec/hpb_spec.rb
epics-2.1.0 spec/hpb_spec.rb
epics-2.0.0 spec/hpb_spec.rb
epics-1.8.1 spec/hpb_spec.rb
epics-1.8.0 spec/hpb_spec.rb
epics-1.7.2 spec/hpb_spec.rb
epics-1.7.1 spec/hpb_spec.rb
epics-1.7.0 spec/hpb_spec.rb
epics-1.6.0 spec/hpb_spec.rb
epics-1.5.2 spec/hpb_spec.rb
epics-1.5.1 spec/hpb_spec.rb
epics-1.5.0 spec/hpb_spec.rb
epics-1.4.1 spec/hpb_spec.rb
epics-1.4.0 spec/hpb_spec.rb
epics-1.3.1 spec/hpb_spec.rb
epics-1.3.0 spec/hpb_spec.rb