summaryrefslogtreecommitdiff
path: root/qa/qa/page/validator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/validator.rb')
-rw-r--r--qa/qa/page/validator.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/qa/qa/page/validator.rb b/qa/qa/page/validator.rb
index edd12665f1e..9b2d0a1a41d 100644
--- a/qa/qa/page/validator.rb
+++ b/qa/qa/page/validator.rb
@@ -22,16 +22,14 @@ module QA
end
def descendants
- @descendants ||= constants.map do |const|
+ @descendants ||= constants.flat_map do |const|
case const
when Class
const if const < Page::Base
when Module
Page::Validator.new(const).descendants
end
- end
-
- @descendants.flatten.compact
+ end.compact
end
def errors