title: Rspec 'Cannot Load Such File -- Date (Load Error)
body: <p>first SO question here so feel free to correct any faux pas on my part.</p>
  
  <p>I'm running <code>rspec spec/models</code> from the app directory of a Rails 4.1.0 app and I'm getting the following error:</p>
  
  <pre><code>/home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- Date (LoadError)
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
  from /home/david/Projectsam/spec/models/batch_spec.rb:2:in `&lt;top (required)&gt;'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:241:in `load'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:241:in `block in load'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:241:in `load'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `block in load_spec_files'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `each'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `load_spec_files'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:97:in `setup'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:85:in `run'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:70:in `run'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:38:in `invoke'
  from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/exe/rspec:4:in `&lt;top (required)&gt;'
  from /home/david/.rvm/gems/ruby-2.1.1/bin/rspec:23:in `load'
  from /home/david/.rvm/gems/ruby-2.1.1/bin/rspec:23:in `&lt;main&gt;'
  from /home/david/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
  from /home/david/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
  </code></pre>
  
  <p>I checked a few other similar questions, but they all seemed to be related to Gems or making sure to run the rspec command from your project directory. I'm a bit lost seeing as I thought 'Date' is a core module, not a gem.  I get a similar error when I run <code>bundle exec rspec spec/models</code></p>
  
  <p>There's a good chance I'm missing something stupid, but for the life of me I can't figure out what.  Thanks in advance!</p>
  
  <p><strong>Update:</strong> So in an attempt to clarify this problem bit more, I'm getting this more general error when I run <code>rspec spec</code>:</p>
  
  <pre><code>~/myapp/spec/controllers/dashboard_controller_spec.rb:3:in `&lt;top (required)&gt;': uninitialized constant DashboardController (NameError)
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `block in load_spec_files'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `each'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1057:in `load_spec_files'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:97:in `setup'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:85:in `run'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:70:in `run'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:38:in `invoke'
      from /home/david/.rvm/gems/ruby-2.1.1/gems/rspec-core-3.0.3/exe/rspec:4:in `&lt;top (required)&gt;'
      from /home/david/.rvm/gems/ruby-2.1.1/bin/rspec:23:in `load'
      from /home/david/.rvm/gems/ruby-2.1.1/bin/rspec:23:in `&lt;main&gt;'
      from /home/david/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
      from /home/david/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
  </code></pre>
  
  <p><strong>Update 2:</strong></p>
  
  <p>So there's a <code>require Date</code> in one of the spec files that seems to be causing this - commenting this out lets rspec run without any problems. The weird thing is that rspec works fine on a MacOS without commenting out the <code>require</code> statement.</p>