Flush DNS cache on macosx« an older post
a newer one »Postgres export to a CSV

Run single Rails test

Snippet

Run a single Rails test in a test file by including the test file (which will run all the tests) and -n with the test name prefixed by test_ and having underscores for spaces for the specific test name

# for the test titled: test 'submitting review'
rails test test/models/submission_review_test.rb -n test_submitting_review 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.