title: ArgumentError: Factory not registered
body: <p>I am trying to get factory girl to run with rspec in my rails 4.1.1 app.</p>
  
  <p>Problem is when I run <code>rspec</code> in my command line, i get <code>Failure/Error: verse = build(:verse) ArgumentError: Factory not registered: verse</code>.</p>
  
  <p>I am at loss because I checked the factory girl getting started page and many answers here on SO andI still can't fix this issue.</p>
  
  <p>in my Gemfile:</p>
  
  <pre><code>gem 'rails', '4.1.1'
  group :development, :test do
    gem 'rspec-rails'
    gem "factory_girl_rails"
  end
  </code></pre>
  
  <p>my spec_helper.rb file:</p>
  
  <pre><code>require 'factory_girl_rails'
  RSpec.configure do |config|
    config.include FactoryGirl::Syntax::Methods
  end
  </code></pre>
  
  <p>spec/controllers/api/verses_controller_spec.rb</p>
  
  <pre><code>describe "API Controller" do
    describe "show a verse" do
      it "should return status 200" do
        verse = build(:verse)
        get :show, id: verse.id
        expect(response).to have_http_status(200)
      end
      it "should return json object" do
        verse = build(:verse)
        get :show, id: verse.id
        JSON.parse(response.body).should == {'id' =&gt; verse.id}
      end
    end
  end
  </code></pre>
  
  <p>spec/factories/verses.rb</p>
  
  <pre><code>FactoryGirl.define do
    factory :verse do
      line1 "A beautiful verse I stand"
    end
  end
  </code></pre>
  
  <p>Why isn't my factory loading properly? Files in the spec/factories folder are supposed to get loaded automatically.</p>