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
GavinJoyce-actionwebservice-2.2.3 test/base_test.rb
datanoise-actionwebservice-2.1.0 test/base_test.rb
datanoise-actionwebservice-2.1.1 test/base_test.rb
datanoise-actionwebservice-2.2.2 test/base_test.rb
davidsmalley-actionwebservice-2.3.1 test/base_test.rb
davidsmalley-actionwebservice-2.3 test/base_test.rb
dougbarth-actionwebservice-2.1.1 test/base_test.rb
nmeans-actionwebservice-2.1.1 test/base_test.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb
actionwebservice-0.6.0 test/base_test.rb
actionwebservice-0.6.1 test/base_test.rb
actionwebservice-0.6.2 test/base_test.rb
actionwebservice-0.5.0 test/base_test.rb