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
spec_helper has a blanket stub for Setting#cache_backend.
When running an individual test file, this causes a failure if Setting hasn't already been loaded; so files that don't depend on Setting cannot be tested independently. It could also cause unexpected behavior for developers intending to test Setting. We should refactor to remove this stub.
The text was updated successfully, but these errors were encountered:
Adds a generic Guardfile.
`spec_helper.rb` includes a stub on `Setting` in a before(:each), which
prevents various spec files from running without the rest of the
suite. This pattern also has the issue that it stubs
`Setting#cache_backend` without warning to developers, giving unexpected
results. We should find a way to remove it. See #38.
In the meanwhile, we introduce a guard to prevent errors, and allow
modules that don't depend on `Setting` to be tested independently.
spec_helper
has a blanket stub forSetting#cache_backend
.When running an individual test file, this causes a failure if
Setting
hasn't already been loaded; so files that don't depend onSetting
cannot be tested independently. It could also cause unexpected behavior for developers intending to testSetting
. We should refactor to remove this stub.The text was updated successfully, but these errors were encountered: