require 'rubocop' module ParserSpecs module Formatter include RuboCop::Cop::Util def validity(v) v ? 'valid' : 'invalid' end def quote(s) to_string_literal(String.new(s)) end def decamelize(str) return unless str str.gsub(/(?