Hello community, here is the log from the commit of package yast2-ruby-bindings for openSUSE:Factory checked in at 2015-01-29 09:55:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-ruby-bindings (Old) and /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ruby-bindings" Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-ruby-bindings/yast2-ruby-bindings.changes 2015-01-27 12:36:22.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new/yast2-ruby-bindings.changes 2015-01-29 09:55:19.000000000 +0100 @@ -1,0 +2,6 @@ +Wed Jan 28 14:12:38 UTC 2015 - jreidin...@suse.com + +- add more shortcuts for RSpec helpers, that makes tests shorter +- 3.1.28 + +------------------------------------------------------------------- Old: ---- yast2-ruby-bindings-3.1.27.tar.bz2 New: ---- yast2-ruby-bindings-3.1.28.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-ruby-bindings.spec ++++++ --- /var/tmp/diff_new_pack.eTQTnN/_old 2015-01-29 09:55:20.000000000 +0100 +++ /var/tmp/diff_new_pack.eTQTnN/_new 2015-01-29 09:55:20.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-ruby-bindings -Version: 3.1.27 +Version: 3.1.28 Release: 0 Url: https://github.com/yast/yast-ruby-bindings BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-ruby-bindings-3.1.27.tar.bz2 -> yast2-ruby-bindings-3.1.28.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-3.1.27/package/yast2-ruby-bindings.changes new/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.changes --- old/yast2-ruby-bindings-3.1.27/package/yast2-ruby-bindings.changes 2015-01-26 17:45:12.000000000 +0100 +++ new/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.changes 2015-01-28 15:30:12.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jan 28 14:12:38 UTC 2015 - jreidin...@suse.com + +- add more shortcuts for RSpec helpers, that makes tests shorter +- 3.1.28 + +------------------------------------------------------------------- Thu Jan 22 14:56:52 UTC 2015 - jreidin...@suse.com - enhance usability of Yast::Term class diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-3.1.27/package/yast2-ruby-bindings.spec new/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.spec --- old/yast2-ruby-bindings-3.1.27/package/yast2-ruby-bindings.spec 2015-01-26 17:45:12.000000000 +0100 +++ new/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.spec 2015-01-28 15:30:12.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-ruby-bindings -Version: 3.1.27 +Version: 3.1.28 Url: https://github.com/yast/yast-ruby-bindings Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-3.1.27/src/ruby/yast/rspec/shortcuts.rb new/yast2-ruby-bindings-3.1.28/src/ruby/yast/rspec/shortcuts.rb --- old/yast2-ruby-bindings-3.1.27/src/ruby/yast/rspec/shortcuts.rb 2015-01-26 17:45:12.000000000 +0100 +++ new/yast2-ruby-bindings-3.1.28/src/ruby/yast/rspec/shortcuts.rb 2015-01-28 15:30:12.000000000 +0100 @@ -5,6 +5,8 @@ module RSpec # RSpec extension adding commodity shortcuts to enhance readability module Shortcuts + include Yast::UIShortcuts + # Shortcut for generating Yast::Path objects # # @param route [String] textual representation of the path @@ -12,6 +14,14 @@ def path(route) Yast::Path.new(route) end + + # Shortcut for generating Yast::Term objects + # + # @param args parameter for term initialization + # @return [Yast::Term] the corresponding Term object + def term(*args) + Yast::Term.new(*args) + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-3.1.27/tests/ruby/rspec_shortcuts_spec.rb new/yast2-ruby-bindings-3.1.28/tests/ruby/rspec_shortcuts_spec.rb --- old/yast2-ruby-bindings-3.1.27/tests/ruby/rspec_shortcuts_spec.rb 2015-01-26 17:45:12.000000000 +0100 +++ new/yast2-ruby-bindings-3.1.28/tests/ruby/rspec_shortcuts_spec.rb 2015-01-28 15:30:12.000000000 +0100 @@ -10,4 +10,14 @@ expect(path(".target.dir")).to eq(Yast::Path.new(".target.dir")) end end + + describe "#term" do + it "returns the expected Yast::Term object" do + expect(term(:ButtonBox)).to eq(Yast::Term.new(:ButtonBox)) + end + end + + it "include Yast::UIShortcuts" do + expect(ButtonBox()).to eq(Yast::Term.new(:ButtonBox)) + end end -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org