Sha256: 9d745238a8443108e377e9cb61740fd4b54a2ef995f4c85141b221c695614694

Contents?: true

Size: 694 Bytes

Versions: 34

Compression:

Stored size: 694 Bytes

Contents

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

describe ::Inch::API::Suggest do
  before do
    @codebase = test_codebase(:ruby, :simple)
  end

  it 'should work' do
    @options = {}
    @context = ::Inch::API::Suggest.new @codebase, @options
    refute @context.objects.empty?
    refute @context.grade_lists.empty?
  end

  it 'should work with option: object_count' do
    @options = { object_count: 10 }
    @context = ::Inch::API::Suggest.new @codebase, @options

    @options2 = { object_count: 20 }
    @context2 = ::Inch::API::Suggest.new @codebase, @options2

    assert_equal 10, @context.objects.size
    assert_equal 20, @context2.objects.size
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.5.7 test/unit/api/suggest_test.rb
inch-0.5.6 test/unit/api/suggest_test.rb
inch-0.5.5 test/unit/api/suggest_test.rb
inch-0.5.4 test/unit/api/suggest_test.rb
inch-0.5.3 test/unit/api/suggest_test.rb
inch-0.5.2 test/unit/api/suggest_test.rb
inch-0.5.1 test/unit/api/suggest_test.rb
inch-0.5.0 test/unit/api/suggest_test.rb
inch-0.5.0.rc11 test/unit/api/suggest_test.rb
inch-0.5.0.rc10 test/unit/api/suggest_test.rb
inch-0.5.0.rc9 test/unit/api/suggest_test.rb
inch-0.5.0.rc8 test/unit/api/suggest_test.rb
inch-0.5.0.rc7 test/unit/api/suggest_test.rb
inch-0.5.0.rc6 test/unit/api/suggest_test.rb