# Rake test fails in RadRails on Clean Install

**URL:** <https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799>\
**Category:** Rails\
**Created:** [April 17, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799 "2009-04-17T17:23:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 17, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799/1 "2009-04-17T17:23:16Z")

</div>

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:in`require’  
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:in`require\_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:in`require\_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:in`each’  
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: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: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: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:in `require' 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:in `require_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:in `require_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:in `each' 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: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: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”  
Errors running test:units and test:functionals!

> 

Any questions for next steps to clean up my environment?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 17, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799/2 "2009-04-17T17:24:26Z")

</div>

On Apr 17, 2:01 pm, “removed\_email\_address@domain.invalid”  
[removed\_email\_address@domain.invalid](mailto: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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 17, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799/3 "2009-04-17T17:28:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 18, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799/4 "2009-04-18T17:35:32Z")

</div>

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](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 18, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799/5 "2009-04-18T18:41:11Z")

</div>

On Apr 18, 4:34 pm, WJSimacek [removed\_email\_address@domain.invalid](mailto: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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 18, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/rake-test-fails-in-radrails-on-clean-install/165799/6 "2009-04-18T18:24:47Z")

</div>

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
