Hi!

Axel Beckert wrote:
> Launchy did not built out of the box, symlink some files from
> ruby-launchy/spec/*.rb to ruby-launchy/ helped. I also had to remove
> the yaml file from debian/ruby-test-files.yaml.
> 
> Additionally two suspicious tests are failing:
> 
> # Running tests:
> 
> ............F.....F..xprop:  unable to open display ''
> xprop:  unable to open display ''
> ..........................................................................xprop:
>   unable to open display ''
> .xprop:  unable to open display ''
> .............................................
> 
> Fabulous tests in 0.089517s, 1575.1205 tests/s, 2122.5028 assertions/s.
> 
>   1) Failure:
> test_0002_when host_os is 'darwin' the appropriate 'app_list' method is 
> called(Launchy::Application::Browser) 
> [/home/abe/debian/ruby-launchy-2.1.2/spec/applications/browser_spec.rb:24]:
> Expected: "/usr/bin/open"
>   Actual: "/bin/open"
> 
>   2) Failure:
> test_0004_when host_os is 'linux' the appropriate 'app_list' method is 
> called(Launchy::Application::Browser) 
> [/home/abe/debian/ruby-launchy-2.1.2/spec/applications/browser_spec.rb:24]:
> Expected: nil
>   Actual: "/usr/bin/xdg-open"

I had the same issue, when trying to work on this. I solved it by
commenting out the failing tests:
- the first failure is caused by the fact that when the fake os name is
  darwin, it compares the path for the "open" command with the hard
  coded path "/usr/bin/open". This fails because "which open" (often)
  returns "/bin/open" on Debian.
- the second failure happens when the fake os name is Linux. But here,
  the comment in the test file mentions that the test will fail on linux
  machines. so...

Cheers,

Cédric

Attachment: signature.asc
Description: Digital signature

Reply via email to