Ruby on Rails Wednesday, June 29, 2011

Hi,

I have trouble about install Shoulda, can someone give me some
instruction to install it
I try some .. it ask me to add those code

Rails::Initializer.run do |config|
config.gem "shoulda", :lib => "shoulda"
end

then i cannot do rake to test units.
it gives me error of

/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/
application.rb:63:in `inherited': You cannot have more than one
Rails::Application (RuntimeError)
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/
deprecation.rb:7:in `initialize'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/
deprecation.rb:7:in `new'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/
deprecation.rb:7:in `run'
from /home/joanne/Desktop/2/config/environment.rb:7:in `<top
(required)>'
from /home/joanne/Desktop/2/test/test_helper.rb:2:in `require'
from /home/joanne/Desktop/2/test/test_helper.rb:2:in `<top
(required)>'
from test/functional/languages_controller_test.rb:1:in `require'
from test/functional/languages_controller_test.rb:1:in `<top
(required)>'
from /usr/local/lib/ruby/1.9.1/rake/rake_test_loader.rb:5:in `load'
from /usr/local/lib/ruby/1.9.1/rake/rake_test_loader.rb:5:in `block
in <main>'
from /usr/local/lib/ruby/1.9.1/rake/rake_test_loader.rb:5:in `each'
from /usr/local/lib/ruby/1.9.1/rake/rake_test_loader.rb:5:in `<main>'
Errors running test:units, test:functionals!

thanks for help

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment