Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Rspec tests aren't simply named "Thing.validation_test", they are generally full sentence descriptions of what the functionality is (eg. "A User that belongs to a valid and paid account should allow creation of projects").

The only time I've ever run specific tests by line-number is when I am working on making that single test green. In cases like that the line-number hardly ever changes (if it does, its because I've modified before filters or added a new `let`).

edit: for a bit more context: that entire string would not be typed in for the single test, it would be built from contexts.

    describe User do
      context "belongs to a valid and paid account" do
        it "should allow creation of projects" do
        end
      end
    end


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: