Sha256: d1ebb0d9367e3832f885237415d899cf6f68f8ce2073423d22f2a5e94f061092
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
require 'watir-webdriver' module WatirWebdriverRails class WatirWebdriverRailsError < StandardError; end class TimeoutError < WatirWebdriverRailsError; end end require 'watir-webdriver-rails/rails' require 'watir-webdriver-rails/driver' require 'watir-webdriver-rails/browser' require 'watir-webdriver-rails/rspec' # start server RSpec.configure do |config| config.include WatirWebdriverRails::RSpec, :example_group=>{:file_path=>/spec[\\\/](requests|integration)/} config.after(:each) do if self.class.include?(WatirWebdriverRails::RSpec) browser.clear_cookies end end config.before do if self.class.include?(WatirWebdriverRails::RSpec) WatirWebdriverRails.run_server WatirWebdriverRails.initialize_browser end end # I would really love to add this hook, but it complains that URL is not valid. # config.before(:each) do # if self.class.include?(WatirWebdriverRails::RSpec) # browser.goto 'about:blank' # end # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-rails-0.0.6 | lib/watir-webdriver-rails.rb |
watir-webdriver-rails-0.0.5 | lib/watir-webdriver-rails.rb |