Sha256: 60b618248b9bc619bb0d296cdf86e4a5bb1b0641afbe9cf9a8b01e3fccf1a436
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true require 'analysers_test_helper' require 'rubycritic/analysers/complexity' describe RubyCritic::Analyser::Complexity do context 'when analysing a file' do before do @analysed_module = AnalysedModuleDouble.new(path: 'test/samples/flog/complex.rb', smells: []) analysed_modules = [@analysed_module] RubyCritic::Analyser::Complexity.new(analysed_modules).run end it 'calculates its complexity' do @analysed_module.complexity.must_be :>, 0 end end end
Version data entries
5 entries across 5 versions & 1 rubygems