diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-04-17 17:20:44 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-04-17 17:20:44 +0000 |
commit | c11cc309fa7eb83f76237d022b119802bd7a4968 (patch) | |
tree | 631c7ee5922c8956d2cace6be5d9c4cd6dc31ef9 /actionwebservice/test/api_test.rb | |
parent | 0591c53efde948fd49a00aa23bdfc2ca26fca434 (diff) | |
download | rails-c11cc309fa7eb83f76237d022b119802bd7a4968.tar.gz rails-c11cc309fa7eb83f76237d022b119802bd7a4968.tar.bz2 rails-c11cc309fa7eb83f76237d022b119802bd7a4968.zip |
add backwards compatibility for the public API change made to #api_methods, as it is
being used in some apps.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/test/api_test.rb')
-rw-r--r-- | actionwebservice/test/api_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionwebservice/test/api_test.rb b/actionwebservice/test/api_test.rb index 2278a8213e..83d7196273 100644 --- a/actionwebservice/test/api_test.rb +++ b/actionwebservice/test/api_test.rb @@ -91,6 +91,11 @@ class TC_API < Test::Unit::TestCase assert_equal({:appkey => 5, :publish => false}, hash) end + def test_api_methods_compat + sig = API.api_methods[:named_signature][:expects] + assert_equal [{:appkey=>Integer}, {:publish=>TrueClass}], sig + end + def test_to_s assert_equal 'void Expects(int param0, bool param1)', APITest::API.api_methods[:expects].to_s end |