Sha256: fa00f5454ac06b170c8210da2b5a5a4edc6ec9934eb0b3fb0961d81d523ccf1e

Contents?: true

Size: 713 Bytes

Versions: 7

Compression:

Stored size: 713 Bytes

Contents

Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }

require 'pry'
require 'billy/rspec'
require 'rack'
require 'logger'

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 :all do
    start_test_servers
  end

  config.before :each do
    proxy.reset_cache
  end

  config.after :each do
    Billy.config.reset
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
puffing-billy-0.8.0 spec/spec_helper.rb
puffing-billy-0.7.0 spec/spec_helper.rb
puffing-billy-0.6.2 spec/spec_helper.rb
puffing-billy-0.6.1 spec/spec_helper.rb
puffing-billy-0.6.0 spec/spec_helper.rb
puffing-billy-0.5.1 spec/spec_helper.rb
puffing-billy-0.5.0 spec/spec_helper.rb