I''ve got an app that used the LoginGenerator, and now I''m
trying to
integrate the Salted Login Generator to it. Managed to change the
models and controllers enough to make it work mostly with my app so
far, but I''m trying to run the unit tests and it''s blowing up.
Specifically the account model. I can''t make any sense of this error
message, hopefully somebody knows what''s going on.
%ruby test/unit/account_test.rb
/usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:74:in
`load_specification'':
/usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:304:in
`date='': uninitialized constant Gem::Specification::Date (NameError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:296:in
`date=''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:384:in
`send''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:384:in
`initialize''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:383:in
`each''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:383:in
`initialize''
from (eval):1:in `new''
from (eval):1:in `load_specification''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:45:in
`eval''
... 11 levels...
from ./test/unit/../test_helper.rb:5:in `require''
from ./test/unit/../test_helper.rb:5
from test/unit/account_test.rb:1:in `require''
from test/unit/account_test.rb:1
Line 5 of test/unit/test_helper.rb is:
require File.expand_path(File.dirname(__FILE__) +
"/../config/environment")
I tried changing it to environment.rb to see if maybe it was a typo, same error.
Ruby version is 1.8.2, Rails is 0.13.1, and SLG is 1.1.1