在使用 RSpec 测试我的 Rails3 应用程序时,有这么多关于失败规范的信息很好,但让它们可点击会更好:
2) Project
Failure/Error: create(:project) # Needed for validate_presence_of
ActiveRecord::RecordInvalid:
Validation failed: Name has already been taken
# ./spec/models/project_spec.rb:6:in `block (2 levels) in <top (required)>'
因此,当单击./spec/models/project_spec.rb:6
它时,会在 TextMate 中打开文件并跳转到第 6 行。有什么办法可以做到这一点吗?