From c11cc309fa7eb83f76237d022b119802bd7a4968 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Sun, 17 Apr 2005 17:20:44 +0000 Subject: 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 --- actionwebservice/test/api_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionwebservice/test') 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 -- cgit v1.2.3