title: unitialized constant Rspec (Name Error) on Rspec.describe
body: <p>When I run my tests, I get this error:</p>
  
  <pre><code>top (required) : uninitialized constant Rspec (NameError)
  </code></pre>
  
  <p>This is the model test that fails, unless I remove 'Rspec.'</p>
  
  <p>ROOT_APP/spec/models/document/date_spec.rb:</p>
  
  <pre><code>require 'rails_helper'
  
  Rspec.describe Document::Date, :type =&gt; :model do
    pending "add some examples to (or delete) #{__FILE__}"
  end
  </code></pre>
  
  <p>I understand that it is better to use Rspec.describe instead of describe.  (something about monkey patching, not really sure what this is).</p>
  
  <p>Of course I could just use describe by itself, which is what I'm doing now just to make my tests work.  I just want to know more about what may be happening.</p>
  
  <p>All under the ROOT_APP/spec directory:</p>
  
  <p>rails_helper.rb</p>
  
  <pre><code>ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'
  require 'spec_helper'
  
  require 'factory_girl'
  require 'capybara/rspec'
  require 'capybara/rails'
  
    Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
  
  RSpec.configure do |config|
  
    config.infer_spec_type_from_file_location!
  
    config.include(MailerMacros)
    config.before(:each) { reset_email }
  
    config.filter_run :focus =&gt; true
    config.run_all_when_everything_filtered = true
    config.include FactoryGirl::Syntax::Methods
  end
  </code></pre>
  
  <p>spec_helper.rb</p>
  
  <pre><code>RSpec.configure do |config|
  
  config.expect_with :rspec do |expectations|  
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end
  
    config.mock_with :rspec do |mocks|
      mocks.verify_partial_doubles = true
    end
  end
  </code></pre>
  
  <p>I tried putting the spec_helper code into the rails_helper.rb file so there's only one file and I get the same error.</p>
  
  <p>Thank you for any answers/advice.</p>