From a75ced9400210be3b245cd34cccb0cd1663fcffd Mon Sep 17 00:00:00 2001 From: Watson Date: Wed, 21 May 2014 15:18:20 +0900 Subject: [PATCH] [test] fix that all spec will be disabled if use :unless option --- test/helpers/bacon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/bacon.rb b/test/helpers/bacon.rb index 3ff49bde..9dd2e556 100644 --- a/test/helpers/bacon.rb +++ b/test/helpers/bacon.rb @@ -52,7 +52,7 @@ module Bacon options = args.pop if options.has_key?(:if) && !options[:if] return xit(*args, &block) - else options.has_key?(:unless) && options[:unless] + elsif options.has_key?(:unless) && options[:unless] return xit(*args, &block) end end