Sha256: 4a8d694379ce88769ba4e22608d569458864463c408e9e67e2b74ffc893c68ca
Contents?: true
Size: 497 Bytes
Versions: 6
Compression:
Stored size: 497 Bytes
Contents
# encoding: utf-8 describe RuboCop::Cop::RSpec::VerifiedDoubles do subject(:cop) { described_class.new } it 'finds `double` instead of a verifying double' do inspect_source(cop, ['it do', ' foo = double("Widget")', 'end']) expect(cop.messages) .to eq(['Prefer using verifying doubles over normal doubles.']) expect(cop.highlights).to eq(['double("Widget")']) expect(cop.offenses.map(&:line).sort).to eq([2]) end end
Version data entries
6 entries across 6 versions & 1 rubygems