title: How do you get the Rails 5 test runner to run tests in a non-standard tests/* folder?
body: <p>I have classes in my app that don't really fit the typical Rails file structure. Based on Yehuda Katz's advice in <a href="https://stackoverflow.com/a/1071510/1927876">this Stackoverflow answer</a>, I decided to make an <code>app/classes</code> folder. I'd like to test these classes, so I also made a <code>test/classes</code> folder.</p>
  
  <p>My problem is that I can't seem to get the test runner to run the tests in <code>test/classes</code> - how can I get it to do so?</p>
  
  <p>I have <code>app/classes/card.rb</code> and <code>test/classes/card_spec.rb</code>. Here is what is currently happening:</p>
  
  <pre><code>code/poker_analyzer [master●] » test
  code/poker_analyzer [master●] » test test/classes/card_spec.rb
  code/poker_analyzer [master●] » bin/rails test
  Running via Spring preloader in process 8991
  Run options: --seed 14207
  
  # Running:
  
  
  
  Finished in 0.000522s, 0.0000 runs/s, 0.0000 assertions/s.
  0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
  code/poker_analyzer [master●] » bin/rails test test/classes/card_spec.rb
  Running via Spring preloader in process 9005
  Run options: --seed 33782
  
  # Running:
  
  .
  
  Finished in 0.001655s, 604.2296 runs/s, 604.2296 assertions/s.
  1 runs, 1 assertions, 0 failures, 0 errors, 0 skips
  code/poker_analyzer [master●] »
  </code></pre>
  
  <p>So it seems to only work when I run <code>bin/rails test test/classes/card_spec.rb</code>. How can I get it to run in the other scenarios?</p>
  
  <p>Update: It is only supposed to work in the scenarios prefaced by <code>bin/rails</code>. So then, my question is why <code>bin/rails test</code> doesn't work.</p>