Sha256: 6c51397d316eb5cbdf47778649c14e2add9055dee65a956a8dac3a418143f6a6

Contents?: true

Size: 814 Bytes

Versions: 28

Compression:

Stored size: 814 Bytes

Contents

require File.dirname(__FILE__) + '/abstract_unit'

module BaseTest
  class API < ActionWebService::API::Base
    api_method :add, :expects => [:int, :int], :returns => [:int]
    api_method :void
  end

  class PristineAPI < ActionWebService::API::Base
    inflect_names false

    api_method :add
    api_method :under_score
  end

  class Service < ActionWebService::Base
    web_service_api API

    def add(a, b)
    end
  
    def void
    end
  end
  
  class PristineService < ActionWebService::Base
    web_service_api PristineAPI

    def add
    end

    def under_score
    end
  end
end

class TC_Base < ActiveSupport::TestCase
  def test_options
    assert(BaseTest::PristineService.web_service_api.inflect_names == false)
    assert(BaseTest::Service.web_service_api.inflect_names == true)
  end
end

Version data entries

28 entries across 28 versions & 17 rubygems

Version Path
datanoise-actionwebservice-2.3.2 test/base_test.rb
dougbarth-actionwebservice-2.3.3 test/base_test.rb
dougbarth-actionwebservice-2.3.4 test/base_test.rb
feldpost-actionwebservice-2.3.3 test/base_test.rb
mozy-actionwebservice-2.3.2 test/base_test.rb
panztel-actionwebservice-2.3.4 test/base_test.rb
pelle-actionwebservice-2.3.3 test/base_test.rb
rickenharp-actionwebservice-2.3.4 test/base_test.rb
tonycoco-actionwebservice-2.3.3 test/base_test.rb
tonycoco-actionwebservice-2.3.4 test/base_test.rb
keshav-actionwebservice-1.0.0 test/base_test.rb
datanoise-actionwebservice-2.3.5 test/base_test.rb
devolute-actionwebservice-2.3.11 test/base_test.rb
aforward-actionwebservice-2.3.8.100 test/base_test.rb
aforward-actionwebservice-2.3.8.3 test/base_test.rb
aforward-actionwebservice-2.3.8.1 test/base_test.rb
fdv-actionwebservice-2.3.8 test/base_test.rb
athlite-actionwebservice-2.3.8 test/base_test.rb
jmeeks-actionwebservice-2.3.2 test/base_test.rb
jmeeks-actionwebservice-2.3.5 test/base_test.rb