title: Breaking down your RSpec tests
body: <p>Some of my Rspec tests have gotten really really big (2000-5000 lines). I am just wondering if anyone has ever tried breaking these tests down into multiple files that meet the following conditions:</p>
  
  <ul>
  <li>There is a systematic way of naming and placing your test (e.g. methods A-L gos to user_spec1.rb).</li>
  <li>You can run a single file that will actually run the other tests inside other files.</li>
  <li>You can still run a specific context within a file </li>
  <li>and, good to have, RubyMine can run a specific test (and all tests) just fine.</li>
  </ul>
  
  <p>For now, I have been successful in doing</p>
  
  <pre><code>#user_spec.rb
  require 'spec_helper'
  require File.expand_path("../user_spec1.rb", __FILE__)
  include UserSpec
  
  #user_spec1.rb
  module UserSpec do
    describe User do
      ..
    end
  end
  </code></pre>