Sha256: 250fe21f7980bb3863b6e0ec88241769b940ccfe2e258da655890b3761e2b0db

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

ENV['RACK_ENV'] = 'test'
require File.join(File.join(File.expand_path(File.dirname(__FILE__))), '..', 'lib', 'sinatra', 'soap')
require 'rspec'
require 'rack/test'

class SoapApp < Sinatra::Base
  register Sinatra::Soap
  soap :test do
    params
  end

  soap :add_circle, in: {circle: {center: {x: :integer, y: :integer}, 
                                  radius: :double}},
            				out: nil do
  	params #=> {circle: {center: {x: 3, y: 2}, radius: 12.0} }
  	nil
	end
end

module RSpecMixin
  include Rack::Test::Methods
end

RSpec.configure { |c| c.include RSpecMixin }

Version data entries

2 entries across 2 versions & 2 rubygems

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