Sha256: eaa8cf843ac6ac3a503423328b8c415c5979aa211c7ccec403c38d9d173072be
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 Bytes
Contents
require "analysers_test_helper" require "rubycritic/analysers/complexity" describe Rubycritic::Analyser::Complexity do it "calculates the complexity of each file and adds it to analysed_modules" do analysed_modules = [AnalysedModuleDouble.new(:path => "test/samples/flog/complex.rb")] Rubycritic::Analyser::Complexity.new(analysed_modules).run analysed_modules.each do |analysed_module| analysed_module.complexity.must_be_kind_of Numeric end end end
Version data entries
5 entries across 5 versions & 1 rubygems