Skip to content

Commit

Permalink
Remove to_set method call per rspec@d8af26e#commitcomment-861297
Browse files Browse the repository at this point in the history
  • Loading branch information
ineverov committed Jan 16, 2012
1 parent db5a740 commit 2b76e88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core/drb_options.rb
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/core/filter_manager.rb
Expand Up @@ -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]+@/
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/core/hooks.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 2b76e88

Please sign in to comment.