Sha256: afe488e201451314541ff1128a831295db535c33d2178147e9b3a14d149a47f6

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

module RSpecSupportConnectivityHelpers
  def need_connectivity
    yield if connectivity_available?
  end

  def connectivity_available?
    ENV["ONLINE"].to_i == 1
  end
end

RSpec.configure do |config|
  config.extend RSpecSupportConnectivityHelpers
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whois-6.0.1 spec/support/helpers/connectivity_helper.rb
whois-6.0.0 spec/support/helpers/connectivity_helper.rb
whois-5.1.1 spec/support/helpers/connectivity_helper.rb
whois-5.1.0 spec/support/helpers/connectivity_helper.rb