Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What version of Ruby are you using?</p> <p>In my understanding, 1.9 introduced <code>MiniTest</code>, which replaces <code>Test::Unit</code> entirely, with a backwards compatible API. So if you're on 1.9 and your Rails app references <code>Test::Unit</code>, it's actually already using <code>MiniTest</code>.</p> <p>Take a look at your Ruby source - <code>test/unit.rb</code> for 1.9.2 has the following requires:</p> <pre><code>require 'minitest/unit' require 'test/unit/assertions' require 'test/unit/testcase' </code></pre> <p>And <code>test/unit/assertions</code> includes <code>MiniTest::Assertions</code>.</p> <hr> <p>Getting your tests to run faster is a whole other dark art. Take a look at <a href="https://github.com/timcharper/spork" rel="nofollow">spork</a> and <a href="https://github.com/mynyml/watchr" rel="nofollow">watchr</a>. The former keeps your app initialized, reloads modified files, and forks before each run of your test suite. The latter watches files in your repo for changes, and automatically runs their associated test cases.</p> <p>Together they give you a pretty mean TDD setup. You write a test case for your new model, and it automatically runs and fails. Then whenever you save the associated model, that testcase re-runs, very quickly. You get near instant feedback on whether you're red/green.</p> <p>They're both a little tricky to get set up and behaving nicely together, so check back with some more questions if you get stuck.</p> <p>Best of luck!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload