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