Sha256: b04d60d8beb0b9fa7f43db96e8887af3483678a9edd1e5f648b4d8f880a25077

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

Stored size: 364 Bytes

Contents

require 'selenium-client'
require 'stringio'

# for bamboo
require 'ci/reporter/rspec'

module SeleniumClientSpecHelper
  def capture_stderr(&blk)
    io = StringIO.new
    orig, $stderr = $stderr, io

    begin
      yield
    ensure
      $stderr = orig
    end

    io.string
  end
end

RSpec.configure do |config|
  config.include(SeleniumClientSpecHelper)
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
browserstack-webdriver-2.40.1 spec/unit/selenium/client/spec_helper.rb
browserstack-webdriver-0.0.22 spec/unit/selenium/client/spec_helper.rb
browserstack-webdriver-0.0.1 spec/unit/selenium/client/spec_helper.rb
bbc-selenium-webdriver-1.17.0 spec/unit/selenium/client/spec_helper.rb