Sha256: 2fcb286256081a100406ad2b9270173c783bc8470f4e89daef1fed82afc08601

Contents?: true

Size: 954 Bytes

Versions: 3

Compression:

Stored size: 954 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
wasabi-3.5.0 spec/wasabi/document/authentication_spec.rb
wasabi-3.4.0 spec/wasabi/document/authentication_spec.rb
wasabi-3.3.1 spec/wasabi/document/authentication_spec.rb