Sha256: eedf9b8070459a7db18c9a13bc7ad8c005a8e6a064da0430ad1436da2a5fc892

Contents?: true

Size: 714 Bytes

Versions: 18

Compression:

Stored size: 714 Bytes

Contents

require 'helper'
require 'lolsoap/wsdl'

class LolSoap::WSDL
  describe Element do
    let(:wsdl)           { MiniTest::Mock.new }
    let(:type_reference) { MiniTest::Mock.new }
    let(:type)           { Object.new }

    subject { Element.new(wsdl, 'bar', 'foo', type_reference, true) }

    before do
      type_reference.expect(:type, type)
    end

    describe '#type' do
      it 'returns the type via the reference' do
        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

18 entries across 18 versions & 1 rubygems

Version Path
lolsoap-0.11.0 test/unit/wsdl/test_element.rb
lolsoap-0.10.0 test/unit/wsdl/test_element.rb
lolsoap-0.9.0 test/unit/wsdl/test_element.rb
lolsoap-0.8.3 test/unit/wsdl/test_element.rb
lolsoap-0.8.2 test/unit/wsdl/test_element.rb
lolsoap-0.8.1 test/unit/wsdl/test_element.rb
lolsoap-0.8.0 test/unit/wsdl/test_element.rb
lolsoap-0.7.0 test/unit/wsdl/test_element.rb
lolsoap-0.6.1 test/unit/wsdl/test_element.rb
lolsoap-0.6.0 test/unit/wsdl/test_element.rb
lolsoap-0.5.1 test/unit/wsdl/test_element.rb
lolsoap-0.5.0 test/unit/wsdl/test_element.rb
lolsoap-0.4.2 test/unit/wsdl/test_element.rb
lolsoap-0.4.1 test/unit/wsdl/test_element.rb
lolsoap-0.4.0 test/unit/wsdl/test_element.rb
lolsoap-0.3.2 test/unit/wsdl/test_element.rb
lolsoap-0.3.1 test/unit/wsdl/test_element.rb
lolsoap-0.3.0 test/unit/wsdl/test_element.rb