8000 test double slash when input = '/' by ashmaroli · Pull Request #5542 · jekyll/jekyll · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test double slash when input = '/' #5542

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

Merged
merged 3 commits into from
Jan 18, 2017
Merged

Conversation

ashmaroli
Copy link
Member

test #5541

@ashmaroli
Copy link
Member Author

/cc @benbalter

"url" => "http://example.com",
"baseurl" => nil
})
refute_equal "http://example.com//", filter.absolute_url(page_url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

"url" => "http://example.com",
"baseurl" => "/base"
})
refute_equal "http://example.com/base//", filter.absolute_url(page_url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we assert that it is proper, rather than refuting this particular wrong case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done..

@DirtyF DirtyF added the tests label Nov 3, 2016
@parkr
Copy link
Member
parkr commented Nov 3, 2016

@benbalter, does this look good to you? I don't see a failing test in the history and I don't trust my reading well enough since I was the one who let this slip through in the first place. 😸

@pathawks
Copy link
Member
pathawks commented Nov 4, 2016

Shouldn't these tests currently be failing? Was something else causing jekyll/jekyll-feed#145?

@ashmaroli
Copy link
Member Author

I was not able to reproduce the error on my Windows machine. Hence wrote these tests to have Travis check it..
an edge case I didn't include in the tests :
test: if the filter produces "//" when the input and baseurl equals "/"

@o0nj
Copy link
o0nj commented Dec 3, 2016

I have applied the changes manually and checks didn't fail at all. Perhaps it was indeed something else that caused the situation described at #5541 as @pathawks mentioned?

@pathawks
Copy link
Member
pathawks commented Jan 5, 2017

What's up with AppVeyor?

@ashmaroli
Copy link
Member Author

What's up with AppVeyor?

@pathawks the test log pre-dates fixing AppVeyor on the master. Restarting the build should sort this. To be on the safer side, I'll update the branch to latest master and initiate a new build altogether.

@parkr
Copy link
Member
parkr commented Jan 18, 2017

Always good to have extra tests for things like this.

@jekyllbot: merge +bug

@jekyllbot jekyllbot merged commit 76e9b8d into jekyll:master Jan 18, 2017
jekyllbot added a commit that referenced this pull request Jan 18, 2017
@ashmaroli
Copy link
Member Author

@parkr I think it would be better that @jekyllbot adds a single label bug-fix instead of the current two.. mainly because tagging a PR with bug doesn't seem that right.

@ashmaroli ashmaroli deleted the url-slash branch October 29, 2017 17:44
@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0