diff options
Diffstat (limited to 'actionwebservice/test')
-rw-r--r-- | actionwebservice/test/api_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionwebservice/test/api_test.rb b/actionwebservice/test/api_test.rb index 986df47a14..2278a8213e 100644 --- a/actionwebservice/test/api_test.rb +++ b/actionwebservice/test/api_test.rb @@ -85,6 +85,12 @@ class TC_API < Test::Unit::TestCase assert_equal -1, API.api_methods[:void].expects_index_of('test') end + def test_parameter_hash + method = API.api_methods[:named_signature] + hash = method.expects_to_hash([5, false]) + assert_equal({:appkey => 5, :publish => false}, hash) + end + def test_to_s assert_equal 'void Expects(int param0, bool param1)', APITest::API.api_methods[:expects].to_s end |