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

Version Path
code_analyzer-0.3.1 spec/code_analyzer/checking_visitor/plain_spec.rb
code_analyzer-0.3.0 spec/code_analyzer/checking_visitor/plain_spec.rb
code_analyzer-0.2.0 spec/code_analyzer/checking_visitor/plain_spec.rb
code_analyzer-0.1.1 spec/code_analyzer/checking_visitor/plain_spec.rb
code_analyzer-0.1.0 spec/code_analyzer/checking_visitor/plain_spec.rb