Andrew Premdas
2009-Mar-17 10:07 UTC
[rspec-users] [Webrat][RSpec] Features opening browser windows
Apologies for previous message without proper subject Since upgrading rspec to 1.2 I am seeing behavior that a web browser is being opened when there is a problem in a page that a feature visits. Is this behavior intentional and if so can I turn it off. Having thirty browser windows open up when I introduce an error that breaks alot of features is a real pain in the backside. TIA Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090317/1c01e9a6/attachment.html>
Bart Zonneveld
2009-Mar-17 12:44 UTC
[rspec-users] [Webrat][RSpec] Features opening browser windows
On 17-mrt-2009, at 11:07, Andrew Premdas wrote:> Apologies for previous message without proper subject > > Since upgrading rspec to 1.2 I am seeing behavior that a web > browser is being opened when there is a problem in a page that a > feature visits. > > Is this behavior intentional and if so can I turn it off. Having > thirty browser windows open up when I introduce an error that > breaks alot of features is a real pain in the backside.It''s a config option in Webrat. Somehow it''s default set to true, used to be false. Put Webrat.configure do |config| config.mode = :rails config.open_error_files = false end in cucumbers env.rb cheers, bartz
Andrew Premdas
2009-Mar-17 21:07 UTC
[rspec-users] [Webrat][RSpec] Features opening browser windows
Thanks Bart, spot on :) 2009/3/17 Bart Zonneveld <zuperinfinite at gmail.com>> > On 17-mrt-2009, at 11:07, Andrew Premdas wrote: > > Apologies for previous message without proper subject >> >> Since upgrading rspec to 1.2 I am seeing behavior that a web browser is >> being opened when there is a problem in a page that a feature visits. >> >> Is this behavior intentional and if so can I turn it off. Having thirty >> browser windows open up when I introduce an error that breaks alot of >> features is a real pain in the backside. >> > > It''s a config option in Webrat. Somehow it''s default set to true, used to > be false. > > Put > > Webrat.configure do |config| > config.mode = :rails > config.open_error_files = false > end > > in cucumbers env.rb > > cheers, > bartz > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090317/3959a800/attachment.html>