Sha256: c250f337ded69cd2bf02e71061c8a095ffd2f36a87b2580a2630e3a27d0f04c1

Contents?: true

Size: 687 Bytes

Versions: 6

Compression:

Stored size: 687 Bytes

Contents

require 'helper'
require 'lolsoap/wsdl'

class LolSoap::WSDL
  describe Element do
    let(:wsdl) { OpenStruct.new }
    subject { Element.new(wsdl, 'foo', 'a:WashHandsRequest', true) }

    describe '#type' do
      let(:wsdl) { MiniTest::Mock.new }

      it 'ignores the namespace and gets the type from the wsdl' do
        type = Object.new
        wsdl.expect(:type, type, ['WashHandsRequest'])
        subject.type.must_equal type
      end
    end

    describe '#singular?' do
      it 'returns the singular value' do
        subject.singular?.must_equal true
      end
    end

    describe '#inspect' do
      it 'works' do
        subject.inspect
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lolsoap-0.2.0 test/unit/wsdl/test_element.rb
lolsoap-0.1.4 test/unit/wsdl/test_element.rb
lolsoap-0.1.3 test/unit/wsdl/test_element.rb
lolsoap-0.1.2 test/unit/wsdl/test_element.rb
lolsoap-0.1.1 test/unit/wsdl/test_element.rb
lolsoap-0.1.0 test/unit/wsdl/test_element.rb