rake test doesn't actually run the unit tests in Hobo
Reported by Betelgeuse | July 15th, 2010 @ 03:00 PM | in Hobo 1.3 (Rails 3)
betelgeuse@pena ~/hobo/hobo-clone/hobo $ rake test
(in /home/betelgeuse/hobo/hobo-clone/hobo)
/usr/bin/ruby18 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
The glob in the Rakefile is wrong:
- t.test_files=Dir.glob( "test/**/*_test.rb" ).sort
+ t.test_files=Dir.glob( "test/**/test_*.rb" ).sort
With this change the tests run but I can't get them to pass. After adding an include for will_paginate I currently get:
betelgeuse@pena ~/hobo/hobo-clone/hobo $ rake test
(in /home/betelgeuse/hobo/hobo-clone/hobo)
/usr/bin/ruby18 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/generators/test_generator_helper.rb" "test/generators/test_helper.rb" "test/generators/test_hobo_model_controller_generator.rb" "test/permissions/test_permissions.rb" "test/rapid/test_rapid.rb"
./test/permissions/models/../../../../hobo/lib/hobo/model.rb:345:in `method_missing': stack level too deep (SystemStackError)
from ./test/permissions/models/../../../../hobo/lib/hobo/model.rb:345:in `method_missing'
from ./test/permissions/models/../../../../hobo/lib/hobo/model.rb:46:in `included'
from ./test/permissions/models/../../../../hobo/lib/hobo/model.rb:124:in `include'
from ./test/permissions/models/../../../../hobo/lib/hobo/model.rb:124:in `hobo_model'
from ./test/permissions/models/models.rb:19:in `model'
from ./test/permissions/models/models.rb:50:in `make_models'
from ./test/permissions/models/models.rb:39:in `init'
from ./test/permissions/test_permissions.rb:20
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load'
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/usr/bin/ruby18 -I"lib:test" "/usr/lib/rub...]
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 11:03 PM
- State changed from new to open
- Milestone set to Hobo 1.3 (Rails 3)
- Milestone order changed from 197853 to 0
-
marygrier February 6th, 2023 @ 04:57 AM
I don't believe it should. I am constantly fascinated by your articles about snake io You and I always agree.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป