Sha256: dd2139a747fd498711fa16b079426049131303d0d469796f09ff2cf5c8df9ce3

Contents?: true

Size: 985 Bytes

Versions: 2

Compression:

Stored size: 985 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Wasabi::Document do
  context "with: authentication.wsdl" do

    subject { Wasabi::Document.new fixture(:authentication).read }

    describe '#namespace' do
      subject { super().namespace }
      it { should == "http://v1_0.ws.auth.order.example.com/" }
    end

    describe '#endpoint' do
      subject { super().endpoint }
      it { should == URI("http://example.com/validation/1.0/AuthenticationService") }
    end

    describe '#element_form_default' do
      subject { super().element_form_default }
      it { should == :unqualified }
    end

    it 'has 1 operation' do
      expect(subject.operations.size).to eq(1)
    end

    describe '#operations' do
      subject { super().operations }
      it do
      should == {
        :authenticate => { :input => "authenticate", :output => "authenticateResponse", :action => "authenticate", :namespace_identifier => "tns" }
      }
    end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wasabi-3.6.1 spec/wasabi/document/authentication_spec.rb
wasabi-3.6.0 spec/wasabi/document/authentication_spec.rb