Skip to content
This repository
Browse code

Fix osxpkg spec tests that should have been skipped on non-Darwin pla…

…tforms.
  • Loading branch information...
commit 67547bca0aa7596fc6ce7e8db4b6407dbf922a8d 1 parent 7ce7264
Timothy Sutton timsutton authored

Showing 1 changed file with 5 additions and 6 deletions. Show diff stats Hide diff stats

  1. +5 6 spec/fpm/package/osxpkg_spec.rb
11 spec/fpm/package/osxpkg_spec.rb
@@ -2,13 +2,13 @@
2 2 require "fpm" # local
3 3 require "fpm/package/osxpkg" # local
4 4
5   -describe FPM::Package::OSXpkg do
6   -
7   - if %x{uname -s}.chomp != "Darwin"
8   - Cabin::Channel.get("rspec").warn("Skipping OS X tests because " \
  5 +platform_is_darwin = (%x{uname -s}.chomp == "Darwin")
  6 +if !platform_is_darwin
  7 + Cabin::Channel.get("rspec").warn("Skipping OS X pkg tests because " \
9 8 "this system is #{%x{uname -s}.chomp}, Darwin required")
10   - end
  9 +end
11 10
  11 +describe FPM::Package::OSXpkg, :if => platform_is_darwin do
12 12 describe "#identifier" do
13 13 it "should be of the form reverse.domain.pkgname" do
14 14 subject.name = "name"
@@ -69,5 +69,4 @@
69 69 end
70 70 end # package attributes
71 71 end # #output
72   -
73 72 end # describe FPM::Package:OSXpkg

0 comments on commit 67547bc

Please sign in to comment.
Something went wrong with that request. Please try again.