From 47a7084b94b8cd0dfc43e0b8f1775eef31c5170d Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Sat, 7 May 2005 22:57:08 +0000 Subject: add base64 signature type (thanks, Shugo Maeda!) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionwebservice/test/api_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionwebservice/test/api_test.rb') diff --git a/actionwebservice/test/api_test.rb b/actionwebservice/test/api_test.rb index 83d7196273..0e58d84864 100644 --- a/actionwebservice/test/api_test.rb +++ b/actionwebservice/test/api_test.rb @@ -7,7 +7,7 @@ module APITest api_method :expects, :expects => [:int, :bool] api_method :returns, :returns => [:int, [:string]] api_method :named_signature, :expects => [{:appkey=>:int}, {:publish=>:bool}] - api_method :string_types, :expects => ['int', 'string', 'bool'] + api_method :string_types, :expects => ['int', 'string', 'bool', 'base64'] api_method :class_types, :expects => [TrueClass, Bignum, String] end end @@ -45,7 +45,7 @@ class TC_API < Test::Unit::TestCase assert_equal([Integer, [String]], API.api_methods[:returns].returns.map{|x| x.array?? [x.element_type.type_class] : x.type_class}) assert_equal([[:appkey, Integer], [:publish, TrueClass]], API.api_methods[:named_signature].expects.map{|x| [x.name, x.type_class]}) assert_equal(nil, API.api_methods[:named_signature].returns) - assert_equal([Integer, String, TrueClass], API.api_methods[:string_types].expects.map{|x| x.type_class}) + assert_equal([Integer, String, TrueClass, ActionWebService::Base64], API.api_methods[:string_types].expects.map{|x| x.type_class}) assert_equal(nil, API.api_methods[:string_types].returns) assert_equal([TrueClass, Integer, String], API.api_methods[:class_types].expects.map{|x| x.type_class}) assert_equal(nil, API.api_methods[:class_types].returns) -- cgit v1.2.3