diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-09 14:37:34 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-09 14:37:34 +0300 |
commit | a171ceba104d29e482a55a0cf070bb1b54b82f07 (patch) | |
tree | 0c9228bad19008fa365e97fc2ef00d2fced0b9b7 /qa | |
parent | bd29d36ac6a1337aecf41ed91616b3fab4a5fd92 (diff) |
Use array literal in QA page validation class
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/validator.rb b/qa/qa/page/validator.rb index e178fd9a1e9..117d8d4db67 100644 --- a/qa/qa/page/validator.rb +++ b/qa/qa/page/validator.rb @@ -33,7 +33,7 @@ module QA end def errors - Array.new.tap do |errors| + [].tap do |errors| descendants.each do |page| page.errors.each do |message| errors.push(Error.new(page.name, message)) |