Sha256: 833992f527124a637fb2425b168ab5ea47c136198f931fb2a3658edc236e823d

Contents?: true

Size: 697 Bytes

Versions: 8

Compression:

Stored size: 697 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.Callbacks.full_doc/1')
      assert m.score >= 50
    end
    #
    it 'should recognize @doc false' do
      m = @objects.find('InchTest.Callbacks.no_doc/1')
      assert m.nodoc?
    end
    #
    it 'should not' do
      m = @objects.find('InchTest.Callbacks.missing_doc/1')
      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/callback_object_test.rb
inch-0.8.0 test/unit/language/elixir/code_object/callback_object_test.rb
inch-0.8.0.rc2 test/unit/language/elixir/code_object/callback_object_test.rb
inch-0.8.0.rc1 test/unit/language/elixir/code_object/callback_object_test.rb
inch-0.7.1 test/unit/language/elixir/code_object/callback_object_test.rb
inch-0.7.0 test/unit/language/elixir/code_object/callback_object_test.rb
inch-0.6.4 test/unit/language/elixir/code_object/callback_object_test.rb
inch-0.6.3 test/unit/language/elixir/code_object/callback_object_test.rb