This project is archived and is in readonly mode.
Problem with test environment. Mail is not a module.
Reported by LiTE | August 13th, 2010 @ 08:27 AM
I have problem with start rails in test environment.
RAILS_ENV="test" rails s
/home/lite/.rvm/gems/ruby-1.8.7-p299/gems/actionmailer-3.0.0.rc/lib/action_mailer/tmail_compat.rb:1: Mail is not a module (TypeError)
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:207:in `load_dependency'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/actionmailer-3.0.0.rc/lib/action_mailer/base.rb:2
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/devise-1.1.rc2/app/mailers/devise/mailer.rb:1
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:207:in `load_dependency'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:326:in `require_or_load'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:280:in `depend_on'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:196:in `require_dependency'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/engine.rb:138:in `eager_load!'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/engine.rb:137:in `each'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/engine.rb:137:in `eager_load!'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/engine.rb:135:in `each'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/engine.rb:135:in `eager_load!'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/rack-mount-0.6.9/lib/rack/mount/code_generation.rb:82:in `to_proc'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application/railties.rb:11:in `each'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application/railties.rb:11:in `all'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application.rb:107:in `eager_load!'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application/finisher.rb:41
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/initializable.rb:25:in `instance_exec'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/initializable.rb:25:in `run'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/initializable.rb:50:in `run_initializers'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/initializable.rb:49:in `each'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/initializable.rb:49:in `run_initializers'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application.rb:134:in `initialize!'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application.rb:77:in `send'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application.rb:77:in `method_missing'
from /home/lite/RubymineProjects/Project/config/environment.rb:7
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:205:in `load_dependency'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:570:in `new_constants_in'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:205:in `load_dependency'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:219:in `require'
from /home/lite/RubymineProjects/Project/config.ru:3
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/lite/.rvm/gems/ruby-1.8.7-p299/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/lite/RubymineProjects/Project/config.ru:1:in `new'
from /home/lite/RubymineProjects/Project/config.ru:1
The same on ruby 1.8.7-p299, and ruby 1.9.3dev (2010-08-12 trunk 28972) [x86_64-linux]
My Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.0.rc'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'mysql2'
gem 'haml'
gem 'devise', '1.1.rc2'
gem 'rpx_now'
gem 'devise_rpx_connectable'
gem 'rails3-jquery-autocomplete', '>= 0.1.1'
gem 'geokit'
gem 'compass'
gem 'paperclip'
gem 'aasm', :git => "git://github.com/rubyist/aasm.git"
gem 'acts-as-messageable', '0.0.3'
gem 'acts_as_tree', :git => 'git://github.com/parasew/acts_as_tree.git'
gem 'ajaxful_rating', :git => 'git://github.com/edgarjs/ajaxful-rating.git', :branch => 'rails3'
gem 'jrails'
gem 'thinking-sphinx', :git => 'git://github.com/freelancing-god/thinking-sphinx.git', :branch => 'rails3', :require => 'thinking_sphinx'
group :test do
gem 'capybara'
gem 'gherkin', '2.2.0'
gem 'database_cleaner'
gem 'cucumber-rails', '0.3.2'
gem 'cucumber', '0.9.0'
gem 'rspec-rails', :git => 'git://github.com/rspec/rspec-rails.git'
gem 'spork'
gem 'launchy' # So you can do Then show me the page
gem 'machinist', :git => 'git://github.com/notahat/machinist.git'
end
The same if I try execute cucumber command.
My gems:
abstract (1.0.0)
actionmailer (3.0.0.rc)
actionpack (3.0.0.rc)
activemodel (3.0.0.rc)
activerecord (3.0.0.rc)
activeresource (3.0.0.rc)
activesupport (3.0.0.rc)
acts-as-messageable (0.0.3)
acts-as-taggable-on (2.0.6)
arel (0.4.0)
babosa (0.1.1, 0.1.0)
bcrypt-ruby (2.1.2)
builder (2.1.2)
bundler (1.0.0.rc.5)
capybara (0.3.9)
chronic (0.2.3)
compass (0.10.4, 0.10.3)
configuration (1.1.0)
cucumber (0.9.0, 0.8.5)
cucumber-rails (0.3.2)
culerity (0.2.10)
daemons (1.1.0)
database_cleaner (0.5.2)
devise (1.1.1, 1.1.rc2)
devise_rpx_connectable (0.1.3)
diff-lcs (1.1.2)
erubis (2.6.6)
factory_girl (1.3.2)
factory_girl_rails (1.0)
ffi (0.6.3)
friendly_id (3.1.2, 3.1.1.1)
geokit (1.5.0)
gherkin (2.2.0)
haml (3.0.16, 3.0.15)
hoe (2.6.1)
i18n (0.4.1)
jrails (0.6.0)
json_pure (1.4.6, 1.4.3)
launchy (0.3.7)
mail (2.2.5)
mime-types (1.16)
mysql (2.8.1)
mysql2 (0.1.9)
nokogiri (1.4.3.1)
packet (0.1.15)
paperclip (2.3.3)
polyglot (0.3.1)
rack (1.2.1)
rack-mount (0.6.9)
rack-test (0.5.4)
rails (3.0.0.rc)
rails3-jquery-autocomplete (0.2.0)
railties (3.0.0.rc)
rake (0.8.7)
rdoc (2.5.9)
redis (2.0.5)
riddle (1.0.12)
rpx_now (0.6.23)
rspec (2.0.0.beta.19)
rspec-core (2.0.0.beta.19)
rspec-expectations (2.0.0.beta.19)
rspec-mocks (2.0.0.beta.19)
rspec-rails (2.0.0.beta.19)
rubyforge (2.0.4)
rubyzip (0.9.4)
selenium-webdriver (0.0.27)
spork (0.8.4)
sqlite3-ruby (1.3.1)
term-ansicolor (1.0.5)
thor (0.14.0)
treetop (1.4.8)
trollop (1.16.2)
tzinfo (0.3.22)
warden (0.10.7)
webrat (0.7.2.beta.1)
will_paginate (3.0.pre)
Comments and changes to this ticket
-
Santiago Pastorino February 2nd, 2011 @ 04:33 PM
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino February 2nd, 2011 @ 04:33 PM
- State changed from open to stale
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>