Sha256: 25ebd4443ca923287a205fcb770afa8d9989bcbc0d8535947d8af4acf7049667

Contents?: true

Size: 811 Bytes

Versions: 66

Compression:

Stored size: 811 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 < Test::Unit::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

66 entries across 66 versions & 11 rubygems

Version Path
typo-5.1.1 vendor/actionwebservice/test/base_test.rb
typo-5.1.3 vendor/actionwebservice/test/base_test.rb
typo-5.1.98 vendor/actionwebservice/test/base_test.rb
typo-5.1 vendor/actionwebservice/test/base_test.rb
typo-5.2 vendor/actionwebservice/test/base_test.rb
typo-5.3 vendor/actionwebservice/test/base_test.rb