title: Why are my fixture objects not available in my Rails Test::Unit test?
body: <p>According to <a href="http://guides.rubyonrails.org/testing_rails_applications.html#_the_low_down_on_fixtures" rel="nofollow noreferrer">this Rails guide</a>, if you create a fixture, it becomes available in your test class.</p>
  
  <p>I have this fixture in <code>users.yml</code>:</p>
  
  <pre><code>&lt;%
    stan = User.new
    stan.username = 'stan'
    stan.set_hashed_password('mysterio')
    stan.email = 'stan@abc.com'
  %&gt;
  
  stan:
    username: &lt;%= stan.username %&gt;
    hashed_password: &lt;%= stan.hashed_password %&gt;
    password_salt: &lt;%= stan.password_salt %&gt;
    email: &lt;%= stan.email %&gt;
  </code></pre>
  
  <p>Following the Rails guide, I'm trying to access it like this:</p>
  
  <pre><code>class SessionsControllerTest &lt; ActionController::TestCase
  
    @user = users(:stan)
  
    # ...
  
  end
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>./test/functional/sessions_controller_test.rb:5: undefined method `users' for SessionsControllerTest:Class (NoMethodError)
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require'
  </code></pre>