例如,如果我有./views/*_spec,那么我可以使用render函数。但是,如果我想使用./integrations/*_spec中的render函数呢?我该怎么做呢?
发布于 2012-03-09 23:34:41
解决方案是将RSpec模块包含到describe块中
include RSpec::Rails::ViewExampleGroup
https://stackoverflow.com/questions/9634699
相似问题