Sha256: bd90f94ee5a27cd540f96ff9e0936faeb91e86ba5f054295293d0a305cd74ab1
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 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_be_kind_of String end it "has smells with scores" do smell = @adapter.smells.first smell.score.must_be_kind_of Numeric end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.10 | test/lib/rubycritic/metric_adapters/flog_adapter_test.rb |
rubycritic-0.0.9 | test/lib/rubycritic/metric_adapters/flog_adapter_test.rb |