TeX and CSS tweaks.
Sync with latest Instiki Trunk (Updates Rails to 1.2.2)
This commit is contained in:
parent
0ac586ee25
commit
c358389f25
443 changed files with 24218 additions and 9823 deletions
|
@ -2,6 +2,7 @@ require File.dirname(__FILE__) + '/abstract_unit'
|
|||
require 'action_web_service/test_invoke'
|
||||
|
||||
class TestInvokeAPI < ActionWebService::API::Base
|
||||
api_method :null
|
||||
api_method :add, :expects => [:int, :int], :returns => [:int]
|
||||
end
|
||||
|
||||
|
@ -14,6 +15,9 @@ class TestInvokeService < ActionWebService::Base
|
|||
@invoked = true
|
||||
a + b
|
||||
end
|
||||
|
||||
def null
|
||||
end
|
||||
end
|
||||
|
||||
class TestController < ActionController::Base
|
||||
|
@ -29,6 +33,9 @@ class TestInvokeDirectController < TestController
|
|||
@invoked = true
|
||||
@method_params[0] + @method_params[1]
|
||||
end
|
||||
|
||||
def null
|
||||
end
|
||||
end
|
||||
|
||||
class TestInvokeDelegatedController < TestController
|
||||
|
@ -97,4 +104,9 @@ class TestInvokeTest < Test::Unit::TestCase
|
|||
assert_raise(ArgumentError) { invoke :add, 1 }
|
||||
end
|
||||
|
||||
def test_with_no_parameters_declared
|
||||
@controller = TestInvokeDirectController.new
|
||||
assert_nil invoke(:null)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue