Rspec and Selenium Question

So I have created a number of rspec test using the selenium ruby client.

The problem is I can not figure out a easy way to say run all the test I
have on each browser I want to support. The current work around I have
is to use and environment variable and have the specs look at a config
file to find the browser information it is suppose to use. But this
requires running spec for each change to the environment.

What I really want to do is a way to loop over all the test in a example
file and say do it for each on of these configurations.

I am using the most recent version of rspec.

Any pointers would be appreciated.

Thanks

Are you running on a *nix box? You could always just use a bash
one-liner, or script

for env in ie firefox opera ; do rspec ENV=$env ; spec ; done

On Wed, Apr 7, 2010 at 3:24 AM, Cid D. [email protected] wrote:

Thanks


rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users


Greg A.

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs