Sha256: b2218202add89aa45254ee23d11b6aed1053581d48c7921ab44e127b90c7b671
Contents?: true
Size: 400 Bytes
Versions: 4
Compression:
Stored size: 400 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop describe AvoidPerlBackrefs do let(:ap) { AvoidPerlBackrefs.new } it 'registers an offence for $1' do inspect_source(ap, ['puts $1']) expect(ap.offences.size).to eq(1) expect(ap.offences.map(&:message)) .to eq(['Prefer the use of MatchData over $1.']) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems