summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authorKlaus Kämpf <kkaempf@suse.de>2010-11-07 21:56:07 +0100
committerKlaus Kämpf <kkaempf@suse.de>2010-11-07 21:56:07 +0100
commit3633140b427f5ed62de80994192197a6ac3fddd2 (patch)
tree5e15b47869504673d64153918e1928cdf2968140 /swig
parent3a59dae44d4dd8407239e4e04f44a36ee9bdaadc (diff)
downloadlibzypp-bindings-3633140b427f5ed62de80994192197a6ac3fddd2.tar.gz
libzypp-bindings-3633140b427f5ed62de80994192197a6ac3fddd2.tar.bz2
libzypp-bindings-3633140b427f5ed62de80994192197a6ac3fddd2.zip
Test the refactored Arch in conjunction with ZConfig
Diffstat (limited to 'swig')
-rw-r--r--swig/ruby/tests/starting.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/swig/ruby/tests/starting.rb b/swig/ruby/tests/starting.rb
index be7bfed..4d96404 100644
--- a/swig/ruby/tests/starting.rb
+++ b/swig/ruby/tests/starting.rb
@@ -13,5 +13,10 @@ class LoadTest < Test::Unit::TestCase
require 'zypp'
zypp = Zypp::ZYppFactory::instance.get_zypp
assert zypp
+ zconfig = Zypp::ZConfig::instance
+ assert zconfig
+ puts zconfig.system_architecture
+ zconfig.set_system_architecture(Zypp::Arch.new("i686"))
+ puts zconfig.system_architecture
end
end