title: Does rspec access the database when tests are run?
body: <p>I'm using rspec-rails to test a controller in my rails application. In one instance, I'm creating new objects to test that they're properly assigned to instance variables. </p>
  
  <pre><code>describe MainController do
      describe "GET #index" do
          it "properly assigns a colored ball" do
              ball1 = Ball.create(color: 'red')
              get :index
              expect(assigns(:red_balls)).to eq([ball1])
          end
      end
  end
  </code></pre>
  
  <p>When I run the test, does rspec access the database to create ball1 and then delete it once the test is run? </p>