lib/rubocop/cop/rspec/context_wording.rb in rubocop-rspec-1.29.1 vs lib/rubocop/cop/rspec/context_wording.rb in rubocop-rspec-1.30.0
- old
+ new
@@ -54,9 +54,10 @@
end
def joined_prefixes
quoted = prefixes.map { |prefix| "'#{prefix}'" }
return quoted.first if quoted.size == 1
+
quoted << "or #{quoted.pop}"
quoted.join(', ')
end
end
end