Sha256: 4f86720cab99e9af0a7b72d22b25e448b08106915908a325bb4a2347312725c5

Contents?: true

Size: 483 Bytes

Versions: 6

Compression:

Stored size: 483 Bytes

Contents

module CapybaraDefaultMaxWaitMetadataHelper
  extend ActiveSupport::Concern

  included do
    before do |example|
      next unless example.metadata[:default_max_wait_time]

      @previous_wait_time = Capybara.default_max_wait_time
      Capybara.default_max_wait_time = example.metadata[:default_max_wait_time]
    end

    after do |example|
      next unless example.metadata[:default_max_wait_time]

      Capybara.default_max_wait_time = @previous_wait_time
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.4.0 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.3.3 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.3.2 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.3.1 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.3.0 spec/support/features/capybara_default_max_wait_metadata_helper.rb