Forum: Ruby on Rails Rake test fails in RadRails on Clean Install

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2009-04-17 19:23
(Received via mailing list)
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?
Frederick C. (Guest)
on 2009-04-17 19:24
(Received via mailing list)
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
Fernando P. (Guest)
on 2009-04-17 19:28
Did you read the error message or simply copy paste it for someone to do
the work for you?
WJSimacek (Guest)
on 2009-04-18 19:35
(Received via mailing list)
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>
WJSimacek (Guest)
on 2009-04-18 20:24
(Received via mailing list)
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
Frederick C. (Guest)
on 2009-04-18 20:41
(Received via mailing list)
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
This topic is locked and can not be replied to.