From 552944161d58b0685ffde0793d342883fc89993e Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Thu, 7 Aug 2008 16:07:36 +0000 Subject: [PATCH] require/include zypp at top --- swig/ruby/tests/bytecount.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/swig/ruby/tests/bytecount.rb b/swig/ruby/tests/bytecount.rb index cb1b309..559d7ab 100755 --- a/swig/ruby/tests/bytecount.rb +++ b/swig/ruby/tests/bytecount.rb @@ -9,14 +9,16 @@ $:.unshift "../../../build/swig/ruby" require 'test/unit' class LoadTest < Test::Unit::TestCase + require 'zypp' + include Zypp + def test_loading - require 'zypp' - g = Zypp::ByteCount.new(Zypp::ByteCount.G) + g = ByteCount.new(ByteCount.G) assert g - gb = Zypp::ByteCount.new(Zypp::ByteCount.GB) + gb = ByteCount.new(ByteCount.GB) assert gb - k = Zypp::ByteCount.new(Zypp::ByteCount.K) + k = ByteCount.new(ByteCount.K) assert k.to_i == 1024 end end -- 2.7.4