Hello community, here is the log from the commit of package yast2-packager for openSUSE:Factory checked in at 2015-02-08 13:02:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-packager (Old) and /work/SRC/openSUSE:Factory/.yast2-packager.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-packager" Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-packager/yast2-packager.changes 2015-02-06 10:22:05.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-packager.new/yast2-packager.changes 2015-02-08 13:02:46.000000000 +0100 @@ -1,0 +2,6 @@ +Fri Feb 6 13:26:27 UTC 2015 - an...@suse.com + +- The unit tests are now compatible with RSpec 3 (bnc#916364) +- 3.1.60 + +------------------------------------------------------------------- Old: ---- yast2-packager-3.1.59.tar.bz2 New: ---- yast2-packager-3.1.60.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-packager.spec ++++++ --- /var/tmp/diff_new_pack.Ttcf1g/_old 2015-02-08 13:02:46.000000000 +0100 +++ /var/tmp/diff_new_pack.Ttcf1g/_new 2015-02-08 13:02:46.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-packager -Version: 3.1.59 +Version: 3.1.60 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-packager-3.1.59.tar.bz2 -> yast2-packager-3.1.60.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-packager-3.1.59/package/yast2-packager.changes new/yast2-packager-3.1.60/package/yast2-packager.changes --- old/yast2-packager-3.1.59/package/yast2-packager.changes 2015-02-05 08:43:11.000000000 +0100 +++ new/yast2-packager-3.1.60/package/yast2-packager.changes 2015-02-06 14:44:04.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 6 13:26:27 UTC 2015 - an...@suse.com + +- The unit tests are now compatible with RSpec 3 (bnc#916364) +- 3.1.60 + +------------------------------------------------------------------- Thu Feb 5 07:33:09 UTC 2015 - jsr...@suse.cz - initialize bootloader during update if proposed from scratch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-packager-3.1.59/package/yast2-packager.spec new/yast2-packager-3.1.60/package/yast2-packager.spec --- old/yast2-packager-3.1.59/package/yast2-packager.spec 2015-02-05 08:43:11.000000000 +0100 +++ new/yast2-packager-3.1.60/package/yast2-packager.spec 2015-02-06 14:44:04.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-packager -Version: 3.1.59 +Version: 3.1.60 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-packager-3.1.59/src/modules/AddOnProduct.rb new/yast2-packager-3.1.60/src/modules/AddOnProduct.rb --- old/yast2-packager-3.1.59/src/modules/AddOnProduct.rb 2015-02-05 08:43:11.000000000 +0100 +++ new/yast2-packager-3.1.60/src/modules/AddOnProduct.rb 2015-02-06 14:44:04.000000000 +0100 @@ -2178,7 +2178,8 @@ end def renamed?(old_name, new_name) - @product_renames[old_name] && @product_renames[old_name].include?(new_name) + return false unless @product_renames[old_name] + @product_renames[old_name].include?(new_name) end def add_rename(old_name, new_name) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-packager-3.1.59/test/addon_product_test.rb new/yast2-packager-3.1.60/test/addon_product_test.rb --- old/yast2-packager-3.1.59/test/addon_product_test.rb 2015-02-05 08:43:11.000000000 +0100 +++ new/yast2-packager-3.1.60/test/addon_product_test.rb 2015-02-06 14:44:04.000000000 +0100 @@ -7,28 +7,28 @@ describe Yast::AddOnProduct do describe "#renamed?" do it "returns true if product has been renamed" do - expect(Yast::AddOnProduct.renamed?("SUSE_SLES", "SLES")).to be_true + expect(Yast::AddOnProduct.renamed?("SUSE_SLES", "SLES")).to eq(true) end it "returns false if the product rename is not known" do - expect(Yast::AddOnProduct.renamed?("foo", "bar")).to be_false + expect(Yast::AddOnProduct.renamed?("foo", "bar")).to eq(false) end end describe "#add_rename" do it "adds a new product rename" do - expect(Yast::AddOnProduct.renamed?("FOO", "BAR")).to be_false + expect(Yast::AddOnProduct.renamed?("FOO", "BAR")).to eq(false) Yast::AddOnProduct.add_rename("FOO", "BAR") - expect(Yast::AddOnProduct.renamed?("FOO", "BAR")).to be_true + expect(Yast::AddOnProduct.renamed?("FOO", "BAR")).to eq(true) end it "keeps the existing renames" do # add new rename Yast::AddOnProduct.add_rename("SUSE_SLES", "SLES_NEW") # check the new rename - expect(Yast::AddOnProduct.renamed?("SUSE_SLES", "SLES_NEW")).to be_true + expect(Yast::AddOnProduct.renamed?("SUSE_SLES", "SLES_NEW")).to eq(true) # check the already known rename - expect(Yast::AddOnProduct.renamed?("SUSE_SLES", "SLES")).to be_true + expect(Yast::AddOnProduct.renamed?("SUSE_SLES", "SLES")).to eq(true) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-packager-3.1.59/test/packages_test.rb new/yast2-packager-3.1.60/test/packages_test.rb --- old/yast2-packager-3.1.59/test/packages_test.rb 2015-02-05 08:43:11.000000000 +0100 +++ new/yast2-packager-3.1.60/test/packages_test.rb 2015-02-06 14:44:04.000000000 +0100 @@ -59,17 +59,17 @@ context "when biosdevname behavior explicitly defined on the Kenel command line" do it "returns biosdevname within the list of required packages" do set_root_path("cmdline-biosdevname_1") - expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to be_true + expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to eq(true) end it "does not return biosdevname within the list of required packages" do set_root_path("cmdline-biosdevname_0") - expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to be_false + expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to eq(false) end it "does not return biosdevname within the list of required packages then value is invalid" do set_root_path("cmdline-biosdevname_10") - expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to be_false + expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to eq(false) end end @@ -80,7 +80,7 @@ it "returns biosdevname within the list of packages" do # 0 means `grep` succeeded Yast::SCR.stub(:Execute).with(SCR_BASH_PATH, CHECK_FOR_DELL_SYSTEM).and_return(0) - expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to be_true + expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to eq(true) end end @@ -88,7 +88,7 @@ it "does not return biosdevname within the list of packages" do # 1 means `grep` has not succeeded Yast::SCR.stub(:Execute).with(SCR_BASH_PATH, CHECK_FOR_DELL_SYSTEM).and_return(1) - expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to be_false + expect(Yast::Packages.kernelCmdLinePackages.include?("biosdevname")).to eq(false) end end end @@ -307,7 +307,7 @@ expect(status[:new]).to eq([]) expect(status[:removed]).to eq([]) expect(status[:kept]).to eq([]) - expect(status[:updated]).to have(3).items + expect(status[:updated].size).to eq(3) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-packager-3.1.59/test/product_license_test.rb new/yast2-packager-3.1.60/test/product_license_test.rb --- old/yast2-packager-3.1.59/test/product_license_test.rb 2015-02-05 08:43:11.000000000 +0100 +++ new/yast2-packager-3.1.60/test/product_license_test.rb 2015-02-06 14:44:04.000000000 +0100 @@ -121,28 +121,28 @@ describe "#location_is_url?" do it "returns true for http, https and ftp URL (case insensitive)" do - expect(Yast::ProductLicense.send(:location_is_url?, "http://example.com")).to be_true - expect(Yast::ProductLicense.send(:location_is_url?, "https://example.com")).to be_true - expect(Yast::ProductLicense.send(:location_is_url?, "ftp://example.com")).to be_true - expect(Yast::ProductLicense.send(:location_is_url?, "HTTP://example.com")).to be_true - expect(Yast::ProductLicense.send(:location_is_url?, "HTTPS://example.com")).to be_true - expect(Yast::ProductLicense.send(:location_is_url?, "FTP://example.com")).to be_true + expect(Yast::ProductLicense.send(:location_is_url?, "http://example.com")).to eq(true) + expect(Yast::ProductLicense.send(:location_is_url?, "https://example.com")).to eq(true) + expect(Yast::ProductLicense.send(:location_is_url?, "ftp://example.com")).to eq(true) + expect(Yast::ProductLicense.send(:location_is_url?, "HTTP://example.com")).to eq(true) + expect(Yast::ProductLicense.send(:location_is_url?, "HTTPS://example.com")).to eq(true) + expect(Yast::ProductLicense.send(:location_is_url?, "FTP://example.com")).to eq(true) end it "returns false for other URL schema" do - expect(Yast::ProductLicense.send(:location_is_url?, "file:///foo/bar")).to be_false + expect(Yast::ProductLicense.send(:location_is_url?, "file:///foo/bar")).to eq(false) end it "returns false for non URL string" do - expect(Yast::ProductLicense.send(:location_is_url?, "/foo/bar")).to be_false + expect(Yast::ProductLicense.send(:location_is_url?, "/foo/bar")).to eq(false) end it "returns false for non String values" do - expect(Yast::ProductLicense.send(:location_is_url?, 42)).to be_false + expect(Yast::ProductLicense.send(:location_is_url?, 42)).to eq(false) end it "returns false for nil" do - expect(Yast::ProductLicense.send(:location_is_url?, nil)).to be_false + expect(Yast::ProductLicense.send(:location_is_url?, nil)).to eq(false) end end -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org