Sha256: dbc5f5126c101af63a3fdf1cebb79ce03667599571779e354e4b32b4f3913871
Contents?: true
Size: 545 Bytes
Versions: 2
Compression:
Stored size: 545 Bytes
Contents
require "test_helper" require "rubycritic/adapters/smell/flay" describe Rubycritic::SmellAdapter::Flay do before do sample_paths = ["test/samples/flay/smelly.rb"] @adapter = Rubycritic::SmellAdapter::Flay.new(sample_paths) 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_instance_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.14 | test/lib/rubycritic/adapters/smell/flay_test.rb |
rubycritic-0.0.13 | test/lib/rubycritic/adapters/smell/flay_test.rb |