Sha256: fd8e0c39253d9be2718aeceebdc27071742060c977fa5937d15e817bb919f14d
Contents?: true
Size: 635 Bytes
Versions: 7
Compression:
Stored size: 635 Bytes
Contents
require "test_helper" require "rubycritic/analysers/flog" require "rubycritic/smell_adapters/flog" describe Rubycritic::SmellAdapter::Flog do before do sample_path = "test/samples/flog/smelly.rb" flog = Rubycritic::Analyser::Flog.new([sample_path]) @adapter = Rubycritic::SmellAdapter::Flog.new(flog) end it "detects smells" do @adapter.smells.wont_be_empty end it "has smells with messages" do smell = @adapter.smells.first smell.message.must_equal "has a complexity of 8" end it "has smells with scores" do smell = @adapter.smells.first smell.score.must_be_kind_of Numeric end end
Version data entries
7 entries across 7 versions & 1 rubygems