Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有很多示例使用 rspec、selenium 和 capybara 来运行这样开始的测试:
it "does something", :js => true do
并且您可以通过运行“rake spec”来运行所有内容,但是如何运行单个水豚/硒测试?我这辈子都想不通。
您可以标记一个示例:
it "does something", :js => true, :focus => true do $ rspec . --tag focus
或者您可以指定规范的行号:
$ rspec my_spec.rb:37