Sha256: 744ec1fda6ee510f95f011b38fd1158eeae274796cd3376d1c99ea4e118c8fd5
Contents?: true
Size: 498 Bytes
Versions: 5
Compression:
Stored size: 498 Bytes
Contents
require "spec_helper" module CodeAnalyzer::CheckingVisitor describe Plain do let(:checker1) { mock(:checker) } let(:checker2) { mock(:checker) } let(:visitor) { Plain.new(checkers: [checker1, checker2]) } it "should check by all checkers" do filename = "filename" content = "content" checker1.should_receive(:check).with(filename, content) checker2.should_receive(:check).with(filename, content) visitor.check(filename, content) end end end
Version data entries
5 entries across 5 versions & 1 rubygems