modify scanner_spec.rb to use erb, for dynamic test code generation.
and ready to use rubocop.
run rubocop