lib/assert/context/subject_dsl.rb in assert-2.12.2 vs lib/assert/context/subject_dsl.rb in assert-2.13.0

- old
+ new

@@ -8,12 +8,10 @@ if text self.descriptions << text.to_s else parent = self.superclass.desc if self.superclass.respond_to?(:desc) own = self.descriptions - [parent, *own].compact.reject do |p| - p.to_s.empty? - end.join(" ") + [parent, *own].compact.reject(&:empty?).join(" ") end end alias_method :desc, :description alias_method :describe, :description