Sha256: 38043eba8e27c3426aa1974d18ddb60ba4e8acf6a421e24b618fdad5ca8fa729

Contents?: true

Size: 687 Bytes

Versions: 6

Compression:

Stored size: 687 Bytes

Contents

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

describe ::Inch::API::Suggest do
  before do
    @codebase = test_codebase(: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

6 entries across 6 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 test/unit/api/suggest_test.rb
inch-0.5.0.rc4 test/unit/api/suggest_test.rb
inch-0.4.10 test/unit/api/suggest_test.rb
inch-0.4.9 test/unit/api/suggest_test.rb
inch-0.4.8 test/unit/api/suggest_test.rb
inch-0.4.7 test/unit/api/suggest_test.rb