Adapt to dropped -autorename
authorKlaus Kämpf <kkaempf@suse.de>
Tue, 9 Nov 2010 10:17:11 +0000 (11:17 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Tue, 9 Nov 2010 10:17:11 +0000 (11:17 +0100)
swig/ruby/tests/starting.rb
swig/ruby/tests/target.rb

index 4d96404..5f3afb2 100644 (file)
@@ -11,12 +11,12 @@ require 'test/unit'
 class LoadTest < Test::Unit::TestCase
   def test_loading
     require 'zypp'
-    zypp = Zypp::ZYppFactory::instance.get_zypp
+    zypp = Zypp::ZYppFactory::instance.getZYpp
     assert zypp
     zconfig = Zypp::ZConfig::instance
     assert zconfig
-    puts zconfig.system_architecture
-    zconfig.set_system_architecture(Zypp::Arch.new("i686"))
-    puts zconfig.system_architecture
+    puts zconfig.systemArchitecture
+    zconfig.setSystemArchitecture(Zypp::Arch.new("i686"))
+    puts zconfig.systemArchitecture
   end
 end
index b54bbdc..cfecfff 100644 (file)
@@ -12,16 +12,16 @@ class LoadTest < Test::Unit::TestCase
   require 'zypp'
   include Zypp
   def test_target
-    z = ZYppFactory::instance.get_zypp
+    z = ZYppFactory::instance.getZYpp
 
-    assert z.home_path
-    assert z.tmp_path
+    assert z.homePath
+    assert z.tmpPath
 
-    z.initialize_target(Zypp::Pathname.new("/"))
+    z.initializeTarget(Zypp::Pathname.new("/"))
     t = z.target
     assert t
     t.load
-    t.build_cache
+    t.buildCache
     
     p = z.pool
     assert p