Sha256: 27fd8b614d3aa45964da0a4c787e21c948640056731d88fadcca130131358abf

Contents?: true

Size: 244 Bytes

Versions: 11

Compression:

Stored size: 244 Bytes

Contents

module ConnectivityHelper
  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 ConnectivityHelper
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
whois-2.3.0 spec/support/helpers/connectivity_helper.rb
whois-2.2.0 spec/support/helpers/connectivity_helper.rb
whois-2.1.0 spec/support/helpers/connectivity_helper.rb
whois-2.0.7 spec/support/helpers/connectivity_helper.rb
whois-2.0.6 spec/support/helpers/connectivity_helper.rb
whois-2.0.5 spec/support/helpers/connectivity_helper.rb
whois-2.0.4 spec/support/helpers/connectivity_helper.rb
whois-2.0.3 spec/support/helpers/connectivity_helper.rb
whois-2.0.2 spec/support/helpers/connectivity_helper.rb
whois-2.0.1 spec/support/helpers/connectivity_helper.rb
whois-2.0.0 spec/support/helpers/connectivity_helper.rb