Phlip wrote: > Lune Lune wrote: > >> I wrote an acceptance test (using selenium) to test a specific product. >> But I would like to specify to my test the id of the product to test. > > Firstly, a test that requires input is not a "test", it is a "script" or > "utility". A true test would work from a list of products and test all > of them, > unattended. > > That said, understand that rake is a program that runs programs, so it > does not > pass arguments to them by default. I think there's a system for that, > but this > always works on make-style programs: > > rake PRODUCT=1 test:acceptance ... > > Then access the PRODUCT inside the test with ENV['PRODUCT'].
You perfectly understand what I want to do. but it says that ENV['PRODUCT'] is nil -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---