Sha256: 7563a413711ddf908415a9903e94f81af58e0fd0a9a1a770d1d9eeeca743a275

Contents?: true

Size: 688 Bytes

Versions: 8

Compression:

Stored size: 688 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../../test_helper')

describe ::Inch::Language::Elixir::CodeObject::FunctionObject do
  before do
    @codebase = fresh_codebase(:elixir, :inch_test, 'all.json')
    @objects = @codebase.objects
  end

  describe 'Scores' do
    #
    it 'should not' do
      m = @objects.find('InchTest.Macros.full_doc/0')
      assert m.score >= 50
    end
    #
    it 'should recognize @doc false' do
      m = @objects.find('InchTest.Macros.no_doc/0')
      assert m.nodoc?
    end
    #
    it 'should not' do
      m = @objects.find('InchTest.Macros.missing_doc/0')
      assert m.score == 0
      assert m.undocumented?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.8.0 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.8.0.rc2 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.8.0.rc1 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.7.1 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.7.0 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.6.4 test/unit/language/elixir/code_object/macro_object_test.rb
inch-0.6.3 test/unit/language/elixir/code_object/macro_object_test.rb