-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Added matcher for file content #238
Conversation
@jarl-dk @mattwynne Suggestions? I split this up in two PRs. This is why this one depends on changes in #237 |
I added another matcher... 😄 |
It looks to me like the |
Added matcher for file content
I suggest adding that in another iteration. |
I learned yesterday about "diffable" in a matcher. Will add this. |
Cool! You know, being really picky, it strikes me that the I'll see if I can show you what I mean. |
@maxmeyer here's what I was talking about in #238. Just a suggestion - WDYT? Note that I had to pass in a reference to `aruba` so that I could still get to the `absolute_path` helper method. Maybe we can put this in a module that can be mixed into the helpers if we like this way of doing things...? @myronmarston I'd appreciate your feedback about whether there's a neater way to do this if you have time - particularly the namespacing of the factory method - I used RSpec::Matchers just because I assumed that's where the DSL puts them.
I added a matcher to match string to file content. This might be useful for aruba internals as well, but is itended to be part of the public API.
This PR is based on a refactoring done in #237, that's why there are some more commits added here. I will rebase this PR.