lib/rubocop/rspec/language.rb in rubocop-rspec-2.15.0 vs lib/rubocop/rspec/language.rb in rubocop-rspec-2.16.0

- old
+ new

@@ -158,11 +158,15 @@ end end module Runners # :nodoc: ALL = %i[to to_not not_to].freeze - def self.all(element) - ALL.include?(element) + class << self + def all(element = nil) + return ALL if element.nil? + + ALL.include?(element) + end end end module SharedGroups # :nodoc: class << self