Archive for the 'errors' Category
Hoje, ao tentar usar o rake spec:rcov para verificar a cobertura do meu código percebi que alguns testes de roteamento estavam falhando e a exceção lançada era a seguinte:
undefined method `to_plain_segments’
for #<ActionController::Routing::RouteSet:0xb7659174>
O mais estranho era que ao executar os testes do RSpec (rake spec) nenhum erro era detectado.
Este erro ocorre por um bug no rcov [...]
Filed under: Ruby on Rails, errors | Leave a Comment
Tags: rails, rcov, rspec, rubyonrails
Rubygems execution error
When I am trying to use rubygems on Ubuntu 7.10 I took this error:
“rubygems/custom_require.rb:27:in `gem_original_require’:
no such file to load — sources (LoadError)”
This error occurs when GEM_HOME system variable is unset. To solve that first check your gems directory:
# locale will find occurrences of gems on the system
# look for the one that points to gems [...]
Filed under: errors | Leave a Comment
Tags: gems, rails, ruby, rubygems, rubyonrails