How to end the webrat popups
I often work on features that involve temporarily making other features fail. When I’m working, I don’t sit and watch my tests run, instead I just constantly run them in the background.
Webrat now defaults to open popup windows for each error. If I break something on purpose, this means that there are probably going to be several error messages. For example, if my tests are running when I’m in the middle of doing something, then I might get 8 popups.
Since the windows steal focus, this effectively makes it impossible for me to work, since I’ll be in the shell or in vim and I have to wait for the popups to finish, or else I constantly lose window focus.
To set webrat to Not do this, stick this in your cucumber env:
1 2 3 4 5 6 |
Webrat.configure do |config| config.mode = :rails config.open_error_files = false end |
April 03, 2009


An alternate option is to just run the scenario you want. Try passing the line number of the scenario within the feature file:
Does that help? April 03, 2009 at 4:41 AM
@DrNic Perfect. I knew this was possible, as autotest does it, but hadn't gotten a chance to learn how.
April 03, 2009 at 6:36 AM