Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add set require #555

Merged
merged 3 commits into from Jan 16, 2012
View
@@ -10,6 +10,7 @@ def require_rspec(path)
end
end
+require 'set'
require_rspec 'core/filter_manager'
require_rspec 'core/dsl'
require_rspec 'core/extensions'
@@ -52,7 +52,7 @@ def add_line_numbers(argv)
end
end
- CONDITIONAL_FILTERS = [:if, :unless].to_set
+ CONDITIONAL_FILTERS = [:if, :unless]
def add_filter(argv, name, hash)
hash.each_pair do |k, v|
@@ -71,7 +71,7 @@ class FilterManager
:unless => lambda { |value| value }
}
- STANDALONE_FILTERS = [:locations, :line_numbers, :full_description].to_set
+ STANDALONE_FILTERS = [:locations, :line_numbers, :full_description]
module Describable
PROC_HEX_NUMBER = /0x[0-9a-f]+@/
View
@@ -398,7 +398,7 @@ def find_hook(hook, scope, example_group_class, example = nil)
private
- SCOPES = [:each, :all, :suite].to_set
+ SCOPES = [:each, :all, :suite]
def scope_and_options_from(*args)
scope = if SCOPES.include?(args.first)