I'm a React, Javascript & Rails full-stack Software Engineer. I have been working remotely for the past two years in a remote village. Before joining as a Software Engineer I founded kwiq - a hyperlocal delivery startup to deliver things in remote villages.
1 minute read
With Rails 7.2, the ActiveSupport::TestCase now emits warnings when tests are executed without any assertions.
This update ensures tests are actually verifying behavior, preventing the false security of tests that pass without checking anything.
It encourages meaningful tests, improves code quality,
and maintains robust test coverage to reduce the risk of undetected bugs.
Before
Prior to Rails 7.2, ActiveSupport::TestCase does not issue warnings on tests without assertions.
The above test passes without any assertions
and it won’t raise any warnings.