(Rspec技巧)指定Rspec测试文件

1 只测试匹配到的字符串涉及的specs
rspec -e  expect(page).to have_content

2 只测试指定文件
rspec spec/requests/static_pages_spec.rb

3 指定文件并指定字符串
rspec spec/requests/static_pages_spec.rb  -e expect(page).to have_content

posted on 2014-03-14 15:25  秋叶leaf  阅读(466)  评论(0)    收藏  举报