blob: 21456f6c5a28c570e099ccc5607740c24eaac7aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
require File.dirname(__FILE__) + '/abstract_unit'
module BaseTest
class API < ActionService::API::Base
api_method :add, :expects => [:int, :int], :returns => [:int]
api_method :void
end
class PristineAPI < ActionService::API::Base
inflect_names false
api_method :add
api_method :under_score
end
class Service < ActionService::Base
service_api API
def add(a, b)
end
def void
end
end
class PristineService < ActionService::Base
service_api PristineAPI
def add
end
def under_score
end
end
end
class TC_Base < Test::Unit::TestCase
def test_options
assert(BaseTest::PristineService.service_api.inflect_names == false)
assert(BaseTest::Service.service_api.inflect_names == true)
end
end
|