summaryrefslogtreecommitdiff
path: root/test/wsdl/test_emptycomplextype.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/wsdl/test_emptycomplextype.rb')
-rw-r--r--test/wsdl/test_emptycomplextype.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/wsdl/test_emptycomplextype.rb b/test/wsdl/test_emptycomplextype.rb
index fffc8c85ec..45136b417d 100644
--- a/test/wsdl/test_emptycomplextype.rb
+++ b/test/wsdl/test_emptycomplextype.rb
@@ -6,16 +6,16 @@ module WSDL
class TestWSDL < Test::Unit::TestCase
- def self.setup(filename)
- @@filename = filename
+ def setup
+ @file = File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl')
end
def test_wsdl
- @wsdl = WSDL::Parser.new.parse(File.open(@@filename).read)
+ @wsdl = WSDL::Parser.new.parse(File.open(@file) { |f| f.read })
+ assert_equal("#<WSDL::Definitions:{urn:jp.gr.jin.rrr.example.emptycomplextype}emptycomplextype>", @wsdl.inspect)
end
end
-TestWSDL.setup(File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl'))
end