Sha256: 0a315e0c178933373ca994235a9d574c2ed0836f835a7ba2931614320570526c

Contents?: true

Size: 270 Bytes

Versions: 10

Compression:

Stored size: 270 Bytes

Contents

module RSpecSupportConnectivityHelpers
  def need_connectivity
    if connectivity_available?
      yield
    end
  end

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
whois-5.0.1 spec/support/helpers/connectivity_helper.rb
whois-5.0.0 spec/support/helpers/connectivity_helper.rb
whois-4.1.0 spec/support/helpers/connectivity_helper.rb
whois-2.6.3 spec/support/helpers/connectivity_helper.rb
whois-2.6.2 spec/support/helpers/connectivity_helper.rb
whois-2.6.1 spec/support/helpers/connectivity_helper.rb
whois-2.6.0 spec/support/helpers/connectivity_helper.rb
whois-2.5.1 spec/support/helpers/connectivity_helper.rb
whois-2.5.0 spec/support/helpers/connectivity_helper.rb
whois-2.4.0 spec/support/helpers/connectivity_helper.rb