Sha256: 16ef5456f87efa053df71bb8f22c70155d8d2d5312c1fea80e6edd71eec5542c
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f } require 'pry' require 'billy/capybara/rspec' require 'billy/watir/rspec' require 'rack' require 'logger' require 'fileutils' browser = Billy::Browsers::Watir.new :phantomjs Capybara.app = Rack::Directory.new(File.expand_path('../../examples', __FILE__)) Capybara.server = :webrick Capybara.javascript_driver = :poltergeist_billy Billy.configure do |config| config.logger = Logger.new(File.expand_path('../../log/test.log', __FILE__)) end RSpec.configure do |config| include Billy::TestServer config.run_all_when_everything_filtered = true config.filter_run :focus config.order = 'random' config.before :suite do FileUtils.rm_rf(Billy.config.certs_path) FileUtils.rm_rf(Billy.config.cache_path) end config.before :all do start_test_servers @browser = browser end config.before :each do proxy.reset_cache end config.after :each do Billy.config.reset end config.after :suite do browser.close end end
Version data entries
5 entries across 5 versions & 1 rubygems