Skip to content

Commit

Permalink
Prefer using assert_instance_of
Browse files Browse the repository at this point in the history
To appease RuboCop `Minitest/AssertInstanceOf`
  • Loading branch information
ashmaroli committed Apr 9, 2023
1 parent 7785ef6 commit bb954ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_page.rb
Expand Up @@ -384,8 +384,8 @@ def do_render(page)

should "initialize excerpt eagerly but render only when needed" do
test_page = Jekyll::Page.new(@configured_site, source_dir, "contacts", "foo.md")
assert_equal Jekyll::PageExcerpt, test_page.data["excerpt"].class
assert_equal String, test_page.excerpt.class
assert_instance_of Jekyll::PageExcerpt, test_page.data["excerpt"]
assert_instance_of String, test_page.excerpt
assert_equal(
"<h2 id=\"contact-information\">Contact Information</h2>\n",
test_page.excerpt
Expand Down

0 comments on commit bb954ff

Please sign in to comment.