You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Simplecov must be loaded first to monitor coverage
* Require dev/test deps for specs
Dev and test dependencies should be required for tests to use them.
They _could_ be required manually within each individual spec file.
Doing so would ensure that tests only load that which is directly
necessary for that specific test file and would allow running individual
files the absolute fastest.
However, for expediency and because the dependency list is quite short,
we can just load the entire group within the spec helper and reduce the
burden on each test file to load its own dependencies.
* All gems in Gemfile are dev/test deps
It's unclear why byebug would have ever been listed as a 'test'
dependency in the Gemfile. Virtually _all_ of the gems in the Gemfile
(because this is a gem, and not an app) are going to be dev/test deps.
simplecov, rspec, webmock, etc
All of these gems are "test" gems. So either they should all be listed
in the test group, or the test group ceases to have a role.
(Indeed, because this is a gem and not an application, bundler's groups
are already less useful. Nothing in this codebase was using the test
group.)
* Extract with_max_links to Helper module
The with_max_links helper was already being used across multiple spec
files, but wasn't properly being included for reuse. (It was defined
_globally_ in one single spec, which only worked if that specific test
just _happened_ to be loaded before the other.)
Helpers like this need to be included wherever they are used (if not
included globally).
0 commit comments