Refactor boards_spec.rb to avoid code duplication
Originally created to address #21197 (closed), but !6224 (merged) solved the intermittent spec failures.
Originally created to address #21197 (closed), but !6224 (merged) solved the intermittent spec failures.