Ruby Rspec 的 textmate formatter, 你们是怎么处理 puts 的?

luikore · May 04, 2013 · Last by luikore replied at May 06, 2013 · 2323 hits

就为了在编辑器里跑可以出个好看的能点击的 trace:

但是 print, puts, p 出来的格式都没了,我暂时的丑陋解决方案是在 spec_helper 里写 https://gist.github.com/luikore/5511148

有没有更好的办法?

y 可不可以呢?好像不能点击...

RSpec 运行都是在控制台下面的...

#2 楼 @huacnlee 编辑器里跑可以迅速搞定一个 spec 不用切控制台...

You need to Sign in before reply, if you don't have an account, please Sign up first.