Rake test fails in RadRails on Clean Install


#1

I apologise in advance that I’ve come into TDD late in the game and am
now trying to catch up. I searched others posts to try and find the
answer before creating this new post, with no success.

I’m using the Aptana IDE with RadRails Plugin, all in the Eclipse
framework. I just tried to clean out everything and do a clean re-
install. I then did a >Gem Update --System.

Now, before any development…I want to run >rake test and I want to
get everything passing.

Here’s the log I’m getting

C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/
test" “C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb” “test/unit/article_test.rb” “test/unit/
comment_test.rb” “test/unit/event_test.rb” “test/unit/helpers/
articles_helper_test.rb” “test/unit/helpers/
comments_controller_helper_test.rb” “test/unit/helpers/
comments_helper_test.rb” “test/unit/helpers/events_helper_test.rb”
“test/unit/helpers/nifty_scaffolds_helper_test.rb”
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': C:/workspace/Demos/app/models/photo.rb:6: syntax error, unexpected tASSOC, expecting kEND (SyntaxError) :path => ":rails_root/public/assets/ photos/:id/:style/:basename.:extension" ^ from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:inrequire’
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:155:in require' from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:262:inrequire_or_load’
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:221:in depend_on' from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:133:inrequire_dependency’
from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
368:in load_application_classes' from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 367:ineach’
from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
367:in load_application_classes' ... 12 levels... from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ rake_test_loader.rb:5:inload’
from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb:5
from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb:5:in each' from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ rake_test_loader.rb:5 C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/ test" "C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ rake_test_loader.rb" "test/functional/articles_controller_test.rb" "test/functional/comments_controller_test.rb" "test/functional/ events_controller_test.rb" "test/functional/ photos_controller_test.rb" C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’: C:/workspace/Demos/app/models/photo.rb:6:
syntax error, unexpected tASSOC, expecting kEND (SyntaxError)
:path => “:rails_root/public/assets/
photos/:id/:style/:basename.:extension”
^ from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in require' from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:155:inrequire’
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:262:in require_or_load' from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:221:independ_on’
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:133:in require_dependency' from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 368:inload_application_classes’
from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
367:in each' from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 367:inload_application_classes’
… 12 levels…
from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb:5:in load' from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ rake_test_loader.rb:5 from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ rake_test_loader.rb:5:ineach’
from C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb:5
C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/
test" “C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb”
Errors running test:units and test:functionals!

Any questions for next steps to clean up my environment?


#2

On Apr 17, 2:01 pm, “removed_email_address@domain.invalid”
removed_email_address@domain.invalid wrote:

I apologise in advance that I’ve come into TDD late in the game and am
now trying to catch up. I searched others posts to try and find the
answer before creating this new post, with no success.

I’m using the Aptana IDE with RadRails Plugin, all in the Eclipse
framework. I just tried to clean out everything and do a clean re-
install. I then did a >Gem Update --System.

Now, before any development…I want to run >rake test and I want to
get everything passing.

Sounds like you have a syntax error in photo.rb, close to line 16.

Fred


#3

Did you read the error message or simply copy paste it for someone to do
the work for you?


#4

I am trying to read the error messages and understand them.
Unfortunately, I’m trying to mostly teach myself with whatever good
books I can come up with on the subject. All I really want to do is
get to the original blank slate…with all tests passing, so I can
start from there and know what new stuff is failing.

I went out and cleared out a lot of the testing stuff, and now I’m
down to the following errors:

rake test
(in C:/workspace/Demos)
C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/
test" “C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb”
C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/
test" “C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb”
C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/
test" “C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader.rb”

Did I clear out too much? Should I re-install the Rake GEM?

Thanks,
Wayne

On Apr 17, 10:28 am, Fernando P. removed_email_address@domain.invalid


#5

On Apr 18, 4:34 pm, WJSimacek removed_email_address@domain.invalid wrote:

C:/ruby/bin/ruby -I"C:/workspace/Demos/lib" -I"C:/workspace/Demos/

That’s not an error. It doesn’t appear to be running any tests though
(maybe because you removed them all - not quite sure why you would do
that.).

Fred


#6

Maybe this is just normal case now? I went out and individually ran
test:units, test:functionals, test:plugins, test:integration and it
looks like I always get the same response. Am I ready to start
building?
Thanks again,
Wayne