Sha256: 1c7c3a1837c5aecb361baed5c313a8a56b91377b95e3eecd254b76f05ad516a3

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

require 'spec_helper'


describe "WSDL" do

  def wsdl 
    Sinatra::Soap::Wsdl
  end

  it "should hold registered actions with arguments and blocks" do
    [:test, :add_circle].each do |action|
      expect(wsdl.actions).to include(action)
    end
  end 

  it "should hold blocks for registered actions" do
    [:test, :add_circle].each do |action|
      expect(wsdl.actions[action]).to include(:block)
    end
  end

  it "should hould arguments types" do
    expect(wsdl.actions[:add_circle]).to include(:in)
    expect(wsdl.actions[:add_circle]).to include(:out)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
sinatra-soap-current-0.1.8 spec/wsdl_spec.rb
sinatra-soap-0.1.7 spec/wsdl_spec.rb