Sha256: 69992bf409c781ac461fd7a3c1ce3ae710acb7f7ae69ab6ccc7dff398824e43e

Contents?: true

Size: 636 Bytes

Versions: 15

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

require 'capybara/rspec'
require 'capybara/rails' if defined?(::Rails)

# Configure Capybara

::Capybara.configure do |config|
  config.exact                  = true
  config.match                  = :one
  config.ignore_hidden_elements = true
  config.visible_text_only      = true
end

::Capybara.save_path = "#{::Dir.pwd}/tmp/screenshots"

if defined?(::Chamber)
  ::Capybara.default_host = ::Chamber.env.http.base_url
  ::Capybara.app_host     = ::Chamber.env.http.base_url
  ::Capybara.asset_host   = ::Chamber.env.http.base_url
  ::Capybara.server_port  = ::Chamber.env.http.url_components.port
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-2.1.0 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-2.0.1 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-2.0.0 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.4.0 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.3.1 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.3.0 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.2.1 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.2.0 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.1.3 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.1.2 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.1.1 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.1.0 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.0.5 lib/rspeckled/plugins/configuration/capybara.rb
rspeckled-1.0.4 lib/rspeckled/plugins/configuration/capybara.rb