Sha256: 5063b34ccb2bb49281dffcf798b78878637b033d24350d811f667fec42df43c0
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
require 'test_helper' module Pelusa describe ClassAnalyzer do describe '#analyze' do before do @lints = [ stub(new: stub(check: true)), stub(new: stub(check: true)) ] @klass = stub(name: stub(name: "Foo")) @analyzer = ClassAnalyzer.new(@klass) end it 'analyzes a Class node for a series of lints' do @analyzer.analyze(@lints).must_equal [true, true] end describe '#class_name' do it 'returns the name of the analyzed class' do @analyzer.class_name.must_equal "Foo" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems