Re: [rspec-users] Passing parameters to Rspec scripts

2010-02-04 Thread Levi Conley
ironment variable: > > $ CUSTOMER=foo spec spec > > Then read out the customer name in your specs: > > login = ENV['CUSTOMER'] > > Otherwise, I would guess you might be able to look at ARGV from > within, say, spec_helper.rb but I've never tried

[rspec-users] Passing parameters to Rspec scripts

2010-02-02 Thread Levi Conley
Newbie here. I'm hoping someone can give me an outline of how to re-use rspec scripts by passing them parameters. The situation I have is testing a web application (using watir) for about 30 different customers. Some of the customers have unique features in their particular application instance,