Heroku crashes such a file - spec_helper (LoadError)

I have no errors when I do git push heroku master. But on heroku open, I get Application Error. So, I checked the hero's logs, and the only thing that came out was:

2013-04-03T08:03:52+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/ activesupport-3.2.11/lib/active_support/dependencies.rb:317:in `rescue in depend_on': No such file to load -- spec_helper (LoadError) 

So, I assume this is a problem. Does this mean that he cannot find my spec_helper.rb file? It is located in the spec folder.

On rails g rspec: install I get:

 identical .rspec exist spec identical spec/spec_helper.rb 

Gemfile:

 source 'https://rubygems.org' gem 'rails', '3.2.11' gem 'bootstrap-sass', '2.0.4' gem 'bcrypt-ruby', '3.0.1' gem 'faker', '1.0.1' gem 'will_paginate', '3.0.3' gem 'bootstrap-will_paginate', '0.0.6' gem 'jquery-rails', '2.0.2' gem 'pg', '0.12.2' gem 'rails_autolink', '~> 1.0.9' gem 'rinku', '~> 1.5.0', :require => 'rails_rinku' gem 'auto_html', '1.6.0' gem 'acts_as_votable', '~> 0.4.0' gem 'thumbs_up', '~> 0.6.2' gem 'thin' gem 'rmagick' gem "paperclip", "~> 3.0" gem 'nifty-generators' gem 'fancybox-rails' group :development, :test do gem 'rspec-rails', '2.11.0' end group :development do gem 'annotate', '2.5.0' end group :assets do gem 'sass-rails', '3.2.5' gem 'coffee-rails', '3.2.2' gem 'uglifier', '1.2.3' end group :test do gem 'factory_girl_rails', '4.1.0' gem 'capybara', '1.1.2' gem 'cucumber-rails', '1.2.1', :require => false gem 'database_cleaner', '0.7.0' end 

Any help is much appreciated, thanks. I'm starting to think that somewhere in my source code there is some typo, I'll try to remove rspec.

+4
source share
2 answers

try installing locally locally without testing and development so that it creates dependencies for production and then clicks on the hero again

 bundle install --without test development 
+5
source

Files that were not corrected properly were deleted. I would see them when I wrote git status.

+3
source

All Articles