[DRE-commits] [ruby-launchy] 13/13: Patch to remove test know to be broken on Linux

Gioele Barabucci gioele-guest at alioth.debian.org
Sat Oct 5 13:43:22 UTC 2013


This is an automated email from the git hooks/post-receive script.

gioele-guest pushed a commit to branch master
in repository ruby-launchy.

commit 6f3b3470588b7dc587811bd6095eb7d5ea66f7a7
Author: Gioele Barabucci <gioele at svario.it>
Date:   Sat Oct 5 13:38:25 2013 +0000

    Patch to remove test know to be broken on Linux
---
 ...06-Remove-test-know-to-be-broken-on-Linux.patch |   32 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/0006-Remove-test-know-to-be-broken-on-Linux.patch b/debian/patches/0006-Remove-test-know-to-be-broken-on-Linux.patch
new file mode 100644
index 0000000..97515bd
--- /dev/null
+++ b/debian/patches/0006-Remove-test-know-to-be-broken-on-Linux.patch
@@ -0,0 +1,32 @@
+From: Gioele Barabucci <gioele at svario.it>
+Date: Sat, 5 Oct 2013 13:37:44 +0000
+Subject: Remove test know to be broken on Linux
+
+---
+ spec/applications/browser_spec.rb | 13 -------------
+ 1 file changed, 13 deletions(-)
+
+diff --git a/spec/applications/browser_spec.rb b/spec/applications/browser_spec.rb
+index 20e427c..3886ce3 100644
+--- a/spec/applications/browser_spec.rb
++++ b/spec/applications/browser_spec.rb
+@@ -12,19 +12,6 @@ describe Launchy::Application::Browser do
+     ENV.delete( 'KDE_FULL_SESSION' )
+   end
+ 
+-  { 'windows' => 'start /b' ,
+-    'darwin'  => '/bin/open',
+-    'cygwin'  => 'cmd /C start /b',
+-
+-    # when running these tests on a linux box, this test will fail
+-    'linux'   => nil                 }.each  do |host_os, cmdline|
+-    it "when host_os is '#{host_os}' the appropriate 'app_list' method is called" do
+-      Launchy.host_os = host_os
+-      browser = Launchy::Application::Browser.new
+-      browser.app_list.first.must_equal cmdline
+-    end
+-  end
+-
+   %w[ linux windows darwin cygwin ].each do |host_os|
+     it "the BROWSER environment variable overrides any host defaults on '#{host_os}'" do
+       ENV['BROWSER'] = "my_special_browser --new-tab '%s'"
diff --git a/debian/patches/series b/debian/patches/series
index 0003ef3..5c6d0fc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 0003-Disable-coverage-during-tests.patch
 0004-Fix-test-for-Darwin-OS.patch
 0005-Remove-call-to-gem.patch
+0006-Remove-test-know-to-be-broken-on-Linux.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-launchy.git



More information about the Pkg-ruby-extras-commits mailing list