[wtr-general] Re: Watir-rspec still requires browser variables when executing browser methods?

2014-03-22 Thread Jarmo Pertman
I'd recommend you to move your browser-based specs to requests/integration directory instead, because this is what rspec-rails expects and gives you some additional helpers. Here's the relevant code: https://github.com/rspec/rspec-rails/blob/master/lib/rspec/rails/example.rb#L46-L51 Also, in

[wtr-general] Re: Watir-rspec still requires browser variables when executing browser methods?

2014-03-20 Thread Arjen Ruiterkamp
Ok, the problem apparently was with the tests being in the /spec/acceptancefolder. The Rspec configuration isn't loaded for custom folders by default.. Basically I had to change all the config.include lines in spec_helper.rbfrom: config.include Watir::RSpec::Helper, :type = :request to