在 Sinatra 中使用Rack
and进行单元测试时Test::Unit
,last_response.body.include?
使用不存在的测试字符串给了我一个误报。
为什么不在响应正文中assert last_response.body.include?('string')
时会给出误报?'string'
在 Sinatra 中使用Rack
and进行单元测试时Test::Unit
,last_response.body.include?
使用不存在的测试字符串给了我一个误报。
为什么不在响应正文中assert last_response.body.include?('string')
时会给出误报?'string'