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

run specs on 3.1 #1867

Merged
merged 3 commits into from Feb 24, 2022
Merged

run specs on 3.1 #1867

merged 3 commits into from Feb 24, 2022

Conversation

kasif-adnan
Copy link
Contributor

@kasif-adnan kasif-adnan commented Feb 21, 2022

Signed-off-by: kasif kadnan@progress.com

Description

Describe what this change achieves

Issues Resolved

List any existing issues this PR resolves

Check List

  • All tests pass. See TESTING.md for details.
  • New functionality includes testing.
  • New functionality has been documented in the README if applicable.

Signed-off-by: kasif <kadnan@progress.com>
Signed-off-by: kasif <kadnan@progress.com>
# ].map { |f| File.join(@root, f) }
# (listed - expected).must_equal []
# (expected - listed).must_equal []
# end
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to optionally include "bar/." if the Ruby version is below 3.1. I can't see anything in the Ruby 3.1 release notes. But I've confirmed locally that between 3.0 and 3.1 Dir.glob no longer returns the trailing . directories. i.e. this is no longer returned in 3.1

"./.vagrant/bundler/."

Copy link
Contributor

@damacus damacus Feb 24, 2022

Choose a reason for hiding this comment

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

Right. I found the bug in the tracker here https://bugs.ruby-lang.org/issues/18436

So it looks like the trailing . was in fact a bug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@damacus , wondering what would be the best way to handle the spec in this case for ruby 3.0 and lower. For now, i have added a check for version >=3.1

Signed-off-by: kasif <kadnan@progress.com>
Copy link
Contributor

@damacus damacus left a comment

Choose a reason for hiding this comment

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

🥳

@damacus damacus enabled auto-merge (squash) February 24, 2022 13:29
@damacus damacus enabled auto-merge (squash) February 24, 2022 15:13
@damacus damacus merged commit 833b34d into test-kitchen:main Feb 24, 2022
@damacus damacus mentioned this pull request Feb 24, 2022
@ashiqueps ashiqueps mentioned this pull request Jun 10, 2022
3 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants