test/integration/cli/command/suggest_test.rb in inch-0.4.9 vs test/integration/cli/command/suggest_test.rb in inch-0.4.10

- old
+ new

@@ -11,11 +11,11 @@ @command.run end refute out.empty?, "there should be some output" assert err.empty?, "there should be no errors" assert_match /\bFoo::Bar#method_with_wrong_doc\b/, out - assert_match /\bFoo::Bar#method_without_docstring\b/, out + assert_match /\bFoo::Bar#method_with_rdoc_doc\b/, out assert_match /\bFoo::Bar#method_with_unstructured_doc\b/, out end it "should run with --pedantic switch" do out, err = capture_io do @@ -30,11 +30,11 @@ @command.run("lib/**/*.rb", "app/**/*.rb") end refute out.empty?, "there should be some output" assert err.empty?, "there should be no errors" assert_match /\bFoo::Bar#method_with_wrong_doc\b/, out - assert_match /\bFoo::Bar#method_without_docstring\b/, out + assert_match /\bFoo::Bar#method_with_rdoc_doc\b/, out assert_match /\bFoo::Bar#method_with_unstructured_doc\b/, out end it "should run with non-existing filelist in args" do _out, _err = capture_io do @@ -51,10 +51,10 @@ @command.run("lib/**/*.rb", "app/**/*.rb", "--objects=30") end refute out.empty?, "there should be some output" assert err.empty?, "there should be no errors" assert_match /\bFoo::Bar#method_with_wrong_doc\b/, out - assert_match /\bFoo::Bar#method_without_docstring\b/, out + assert_match /\bFoo::Bar#method_with_rdoc_doc\b/, out assert_match /\bFoo::Bar#method_with_unstructured_doc\b/, out end it "should give error when run with --unknown-switch" do _out, _err = capture_io do