title: Is the @routes be created after "before(:all)" and before "before(:each)"?
body: <p>In the rails project, when i write some controller's spec like this:</p>
  <pre><code>describe &quot;POST 'create'&quot; do
  context &quot;valid user&quot; do
      before(:all) {
    @user_attributes = Factory.attributes_for(:user)
    @user = Factory(:user, @user_attributes)
    post :create, :user=&gt;@user_attributes
  }
  specify { flash[:notice].should eq(&quot;Welcome&quot;)}
  specify { response.should redirect_to(:action=&gt; :index) }
  end
  end
  </code></pre>
  <p>I got some errors like this:</p>
  <p>Failure/Error: post :create, :user=&gt;@user_attributes</p>
  <blockquote>
  <p>RuntimeError:</p>
  <p>@routes is nil: make sure you set it in your test's setup method.</p>
  <p># ./spec/controllers/sessions_controller_spec.rb:22</p>
  <p># ./magazine_slave.rb:22:in `run'
  # magazine_slave_provider.rb:17</p>
  </blockquote>
  <p>When I change before(:all) to before(:each),the test will be pass.</p>
  <p>Is the @routes be created after &quot;before(:all)&quot; and before &quot;before(:each)&quot;</p>