test/unit/api/suggest_test.rb in inch-0.5.0.rc3 vs test/unit/api/suggest_test.rb in inch-0.5.0.rc4

- old
+ new

@@ -1,6 +1,6 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') +require File.expand_path(File.dirname(__FILE__) + "/../../test_helper") describe ::Inch::API::Suggest do before do @codebase = test_codebase(:simple) end @@ -11,13 +11,13 @@ refute @context.objects.empty? refute @context.grade_lists.empty? end it "should work with option: object_count" do - @options = {:object_count => 10} + @options = { object_count: 10 } @context = ::Inch::API::Suggest.new @codebase, @options - @options2 = {:object_count => 20} + @options2 = { object_count: 20 } @context2 = ::Inch::API::Suggest.new @codebase, @options2 assert_equal 10, @context.objects.size assert_equal 20, @context2.objects.size end