Sha256: e523aee1612bfde38b67417eb636182c30a128f0a230a5c65bc4a33ca948e166
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module CodeAnalyzer module CheckingVisitor describe Base do it "should return all checkers' warnings" do warning1 = Warning.new checker1 = double(:checker, warnings: [warning1]) warning2 = Warning.new checker2 = double(:checker, warnings: [warning2]) visitor = Base.new(checkers: [checker1, checker2]) expect(visitor.warnings).to eq [warning1, warning2] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems