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

Fix cucumber_opts warning #1736

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

JuanVqz
Copy link
Contributor

@JuanVqz JuanVqz commented Oct 9, 2023

I was reading the Developing Reek Contributing
to understand how reek works, then run the rake console and saw the warning message.

  reek git:(master) be rake console
WARNING: consider using an array rather than a space-delimited string with cucumber_opts to avoid undesired behavior.

after making it an array the warning was gone, let's see if that works for you.

@troessner
Copy link
Owner

Thanks for this, just checked it on my machine, seems to do the trick! If you rebase against master the rubocop failure will go away and we can merge this one ;)

I was reading the [Developing Reek Contributing](https://github.com/JuanVqz/reek?tab=readme-ov-file#developing-reek--contributing)
to understand how `reek` works, then run the `rake console` and saw
the `warning` message.

```ruby
➜  reek git:(master) be rake console
WARNING: consider using an array rather than a space-delimited string with cucumber_opts to avoid undesired behavior.

BEFORE
➜  reek git:(master) rg cucumber_opts .
./tasks/test.rake
21:    t.cucumber_opts = 'features --format progress --color'

AFTER
➜  reek git:(master) rg cucumber_opts .
./tasks/test.rake
21:    t.cucumber_opts = ['features --format', 'progress --color']
```
@JuanVqz
Copy link
Contributor Author

JuanVqz commented Oct 10, 2023

@troessner rebased!

@mvz mvz merged commit 6d35ab2 into troessner:master Oct 10, 2023
6 checks passed
@mvz
Copy link
Collaborator

mvz commented Oct 10, 2023

Thanks, @JuanVqz!

@JuanVqz JuanVqz deleted the fix-cucumber_opts-warning branch October 16, 2023 22:42
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