small medium large xlarge

Generic-user-small
27 Apr 2012, 14:22
tollman owens (2 posts)

I had the unit testing running fine until fixtures, I’m sure I fat thumbed something along the. After fighting i just replaced the entire test folder from the downloaded code -> rails32 -> depot_c -> test and still getting errors. running rails 3.2. errors below, did I miss a migration or something, seems like if I replaced everything it would just go?

/Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in require': /Users/towens/rorwork/depot/test/unit/product_test.rb:22: syntax error, unexpected ':', expecting ')' (SyntaxError) product = Product.new(title: "My Book Title", ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:22: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:23: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:24: syntax error, unexpected ')', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:40: syntax error, unexpected ':', expecting ')' Product.new(title: "My Book Title", ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:40: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:41: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:61: syntax error, unexpected ':', expecting ')' product = Product.new(title: products(:ruby).title, ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:62: syntax error, unexpected ':', expecting '=' description: "yyy", ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:62: syntax error, unexpected ',', expecting kEND description: "yyy", ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:64: syntax error, unexpected ')', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:71: syntax error, unexpected ':', expecting ')' product = Product.new(title: products(:ruby).title, ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:72: syntax error, unexpected ':', expecting '=' description: "yyy", ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:72: syntax error, unexpected ',', expecting kEND description: "yyy", ^ /Users/towens/rorwork/depot/test/unit/product_test.rb:74: syntax error, unexpected ')', expecting kEND /Users/towens/rorwork/depot/test/unit/product_test.rb:81: syntax error, unexpected $end, expecting kEND from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in require’ from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in load_dependency' from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in require’ from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10 from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in each' from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9 from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in select’ from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4 /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in require': /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:15: odd number list for Hash (SyntaxError) title: 'Lorem Ipsum', ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:15: syntax error, unexpected ':', expecting '}' title: 'Lorem Ipsum', ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:15: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:16: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:17: syntax error, unexpected ',', expecting kEND /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:35: syntax error, unexpected ':', expecting kEND post :create, product: @update ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:44: syntax error, unexpected ':', expecting kEND get :show, id: @product ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:49: syntax error, unexpected ':', expecting kEND get :edit, id: @product ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:54: syntax error, unexpected ':', expecting kEND put :update, id: @product, product: @update ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:54: syntax error, unexpected ':', expecting '=' put :update, id: @product, product: @update ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:62: syntax error, unexpected ':', expecting kEND delete :destroy, id: @product ^ /Users/towens/rorwork/depot/test/functional/products_controller_test.rb:67: syntax error, unexpected $end, expecting kEND from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10 from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in each’ from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9 from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select’ from /Users/towens/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4 Errors running test:units! #<RuntimeError: Command failed with status (1): [/opt/local/bin/ruby -I”lib:test” -I”/Users…]> Errors running test:functionals! #<RuntimeError: Command failed with status (1): [/opt/local/bin/ruby -I”lib:test” -I”/Users…]> Administrators-MacBook-Pro-5:depot towens$

Thanks!

Generic-user-small
27 Apr 2012, 18:45
tollman owens (2 posts)

got it to run successfully. dumped the 3.2 code out of the downloaded code -> test and replaced it with the 3.0 files.

You must be logged in to comment