Sha256: 29a22871706ed9dbc44d33a58275526e18bcf2a281fc8a610f291d672941ede7

Contents?: true

Size: 481 Bytes

Versions: 13

Compression:

Stored size: 481 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

13 entries across 13 versions & 1 rubygems

Version Path
blacklight-spotlight-2.2.1 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.2.0 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.1.0 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.2 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.1 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0.rc6 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0.rc5 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0.rc4 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0.rc3 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0.rc2 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-2.0.0.rc1 spec/support/features/capybara_default_max_wait_metadata_helper.rb
blacklight-spotlight-1.5.1 spec/support/features/capybara_default_max_wait_metadata_helper.rb