-
Notifications
You must be signed in to change notification settings - Fork 71
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
Refactor specs #177
Refactor specs #177
Conversation
8c8826d
to
47b229a
Compare
47b229a
to
4d6a693
Compare
@jamesmartin not immediate to review, but there are no changes to production code Next steps:
|
158fc12
to
166d863
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @tagliala. I'm not a fan of this particular RSpec pattern as it makes the individual tests less approachable. I would rather have each test be a little more verbose and reveal its intention clearly.
I don't think this is a problem, if it's useful. Both of those look good and I've merged them to master.
This is the pattern I don't like ☝️. I think it's needless indirection and I prefer tests to be verbose and self-contained. |
Ok, so I can disable that cop and proceed by re-creating the spec helper plus coverage, correct? |
744d4b2
to
5fe48d0
Compare
Additionally: - Autofix offenses - Update RuboCop dependencies and set require to false Ref: jamesmartin#177 (comment)
Additionally: - Autofix offenses - Update RuboCop dependencies and set require to false - Regenerate rubocop_todo.yml Ref: jamesmartin#177 (comment)
8c1ee6e
to
c6bee29
Compare
c6bee29
to
8ed87b2
Compare
8ed87b2
to
ca35aa6
Compare
- Create `spec_helper` and `.rspec` - Add `spec/examples.txt` to `.gitignore` and sort alphabetically. `spec/examples.txt` allows to run specs with `--only-failures` option - Add SimpleCov for code coverage. Run specs with `COVERAGE` env variable set to any value
ca35aa6
to
7a05360
Compare
@jamesmartin rebased, commit message change accordingly, and force pushed This is now ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks again, @tagliala! ✨
spec_helper
and.rspec
spec/examples.txt
to.gitignore
and sort alphabetically.spec/examples.txt
allows to run specs with--only-failures
optionCOVERAGE
envvariable set to any value