Sha256: 6ad4d521ab3f608f83a693bbcb47768ff74a08cb26b8c9568dc7036e3540266e
Contents?: true
Size: 676 Bytes
Versions: 4
Compression:
Stored size: 676 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module CodeAnalyzer::CheckingVisitor describe Plain do let(:checker1) { double(:checker) } let(:checker2) { double(:checker) } let(:visitor) { Plain.new(checkers: [checker1, checker2]) } it 'should check by all checkers' do filename = 'filename' content = 'content' expect(checker1).to receive(:parse_file?).and_return(false) expect(checker2).to receive(:parse_file?).and_return(true) expect(checker1).not_to receive(:check).with(filename, content) expect(checker2).to receive(:check).with(filename, content) visitor.check(filename, content) end end end
Version data entries
4 entries across 4 versions & 1 rubygems