wayne.simacek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Apr-17 13:01 UTC
Rake test fails in RadRails on Clean Install
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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Apr 17, 2:01 pm, "wayne.sima...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <wayne.sima...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Did you read the error message or simply copy paste it for someone to do the work for you? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Did you read the error message or simply copy paste it for someone to do > the work for you? > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Apr 18, 10:34 am, WJSimacek <wayne.sima...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > > > Did you read the error message or simply copy paste it for someone to do > > the work for you? > > -- > > Posted viahttp://www.ruby-forum.com/.- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Apr 18, 4:34 pm, WJSimacek <wayne.sima...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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" > > >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> Did I clear out too much? Should I re-install the Rake GEM? > > Thanks, > Wayne > > On Apr 17, 10:28 am, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > Did you read the error message or simply copy paste it for someone to do > > the work for you? > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---