Sha256: 07c0c841abfba2ad877d86fb24979025226d46582218f99042ec88707c0b0922
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 Bytes
Contents
require "test_helper" require "rubycritic/analysers/flay" require "rubycritic/smell_adapters/flay" describe Rubycritic::SmellAdapter::Flay do before do sample_path = "test/samples/flay/smelly.rb" flay = Rubycritic::Analyser::Flay.new([sample_path]) @adapter = Rubycritic::SmellAdapter::Flay.new(flay) 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 "found in 2 nodes" end it "has smells with messages" do smell = @adapter.smells.first smell.score.must_be_kind_of Numeric end end
Version data entries
4 entries across 4 versions & 1 rubygems