Sha256: 2f39a00d4ba94ecb4178b934d8332fb364cb13ec640c21c78ed2cc73918b90db

Contents?: true

Size: 728 Bytes

Versions: 11

Compression:

Stored size: 728 Bytes

Contents

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

describe ::Inch::API::Suggest do
  before do
    @dir = fixture_path(:simple)
    @codebase = ::Inch::Codebase.parse(@dir)
  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

11 entries across 11 versions & 1 rubygems

Version Path
inch-0.3.1 test/inch/api/suggest_test.rb
inch-0.3.1.rc6 test/inch/api/suggest_test.rb
inch-0.3.1.rc5 test/inch/api/suggest_test.rb
inch-0.3.1.rc4 test/inch/api/suggest_test.rb
inch-0.3.1.rc3 test/inch/api/suggest_test.rb
inch-0.3.1.rc2 test/inch/api/suggest_test.rb
inch-0.3.1.rc1 test/inch/api/suggest_test.rb
inch-0.3.0 test/inch/api/suggest_test.rb
inch-0.3.0.rc3 test/inch/api/suggest_test.rb
inch-0.3.0.rc2 test/inch/api/suggest_test.rb
inch-0.3.0.rc1 test/inch/api/suggest_test.rb