Sha256: e25d69b705527fb134c7b492433efb0ffa7eb5d86080e39411eb2e745cd0c2e0
Contents?: true
Size: 1014 Bytes
Versions: 6
Compression:
Stored size: 1014 Bytes
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.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
6 entries across 6 versions & 1 rubygems