Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken tests against Jekyll 4.2 #630

Closed
coreycarvalho opened this issue May 2, 2021 · 4 comments
Closed

Broken tests against Jekyll 4.2 #630

coreycarvalho opened this issue May 2, 2021 · 4 comments

Comments

@coreycarvalho
Copy link
Collaborator

Description:

Jekyll 4.2 introduced attribute caching here https://github.com/jekyll/jekyll/pull/8497/files, which causes content to be returned differently. I'm not sure if this was intended to return differently when cached, but it's there nonetheless and we should modify our tests to accommodate. As it stands, this doesn't allow development using Jekyll 4.2.

Tell us a bit about yourself:

  • Version of JekyllAdmin I'm using: 0.11.0
  • Version of Jekyll I'm using: 4.2
  • Version of NodeJS I'm using: 12.22.1
  • Operating System: Fedora 33 on WSL

Steps to reproduce:

  • Force Jekyll 4.2 to be installed in Gemfile
  • Run script/cibuild-ruby
  • Watch content related tests fail

I expected the following:

Expected all tests to pass from master

But got the following, instead:

  1) JekyllAdmin::APIable page with content includes the rendered content
     Failure/Error: expect(content).to eql(expected)

       expected: "<h1 id=\"test-page\">Test Page</h1>\n"
            got: "# Test Page\n"

       (compared using eql?)

       Diff:
       @@ -1 +1 @@
       -<h1 id="test-page">Test Page</h1>
       +# Test Page

     # ./spec/jekyll-admin/apiable_spec.rb:33:in `block (6 levels) in <top (required)>'

  2) pages getting a single page returns the rendered output
     Failure/Error: expect(last_response_parsed["content"]).to eq(expected)

       expected: "<h1 id=\"test-page\">Test Page</h1>\n"
            got: "# Test Page\n"

       (compared using ==)

       Diff:
       @@ -1 +1 @@
       -<h1 id="test-page">Test Page</h1>
       +# Test Page

     # ./spec/jekyll-admin/server/page_spec.rb:99:in `block (3 levels) in <top (required)>'

Finished in 17.59 seconds (files took 0.59848 seconds to load)
205 examples, 2 failures
@coreycarvalho
Copy link
Collaborator Author

I attempted to address this in my PR. IMO, this seems pretty important to allow new PRs to pass tests.

@coreycarvalho
Copy link
Collaborator Author

The PR to address this issue has been open for a little while - any chance I can get some eyes on this?

@jekyllbot jekyllbot added the stale label Feb 7, 2022
@jekyllbot
Copy link

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

@coreycarvalho
Copy link
Collaborator Author

This is no longer an issue as of jekyll 4.2.1.

@jekyllbot jekyllbot removed the stale label Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants