简体   繁体   English

如何在rails中调试rspec

[英]how to debug in rspec in rails

I am running the the rspec case and I want to print some objects on the terminal while running rspec.how to this.thanks in advance 我正在运行rspec案例,我想在运行rspec.how时在终端上打印一些对象。提前知道

I am using old version of rails and running by this command script/spec spec/ 我正在使用旧版本的rails并通过此命令运行脚本/ spec spec /

You should just be able to put puts calls in your specs. 您应该只能在您的规格中加入puts There is no reason why this would not work 没有理由说这不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM