diff options
Diffstat (limited to 'actionwebservice/test')
-rw-r--r-- | actionwebservice/test/struct_test.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actionwebservice/test/struct_test.rb b/actionwebservice/test/struct_test.rb index 838cc2569c..f689746ee4 100644 --- a/actionwebservice/test/struct_test.rb +++ b/actionwebservice/test/struct_test.rb @@ -44,11 +44,9 @@ class TC_Struct < Test::Unit::TestCase end def test_each_pair - members = {} - @struct.each_pair do |name, type| - members[name] = type - assert ActionWebService::BaseType === type + @struct.each_pair do |name, value| + assert_equal @struct.__send__(name), value + assert_equal @struct[name], value end - assert_equal members, Struct.members end end |