Skip to content

Return a Pathname from the file helper#70

Merged
adamstegman merged 1 commit intoalexrothenberg:mainfrom
pirj:return-a-pathname-from-the-file-helper
Dec 4, 2023
Merged

Return a Pathname from the file helper#70
adamstegman merged 1 commit intoalexrothenberg:mainfrom
pirj:return-a-pathname-from-the-file-helper

Conversation

@pirj
Copy link
Contributor

@pirj pirj commented Dec 4, 2023

Otherwise, warnings were printed when the return value of the file helper was used with the exist matcher:

subject { file('posts_spec.rb') }
it { is_expected.to exist }

Follow-up to #68

Other CI failures are unrelated, also present on main (see this PR).

Otherwise, warnings were printed when the return value of the `file`
helper was used with the `exist` matcher:
```ruby
subject { file('posts_spec.rb') }
it { is_expected.to exist }
```
Copy link
Collaborator

@adamstegman adamstegman left a comment

Choose a reason for hiding this comment

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

Thanks! This is a nice cleanup.

@adamstegman adamstegman merged commit 95a2f22 into alexrothenberg:main Dec 4, 2023
@pirj pirj deleted the return-a-pathname-from-the-file-helper branch December 5, 2023 05:49
@tf
Copy link

tf commented Jan 12, 2024

Could we have a release with this fix? 🙏 The deprecation noise is flooding our logs.

@adamstegman
Copy link
Collaborator

@tf sorry for the delay! I've released this as v1.1.7.

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.

3 participants