Update specs checking for truthiness and falseyness to use syntax avoiding RSpec deprecation warnings [ci skip]