Sha256: f04cb563b58b0b6284f217c174fe38249c1b3352350066470be7b80ac0ccefda

Contents?: true

Size: 357 Bytes

Versions: 21

Compression:

Stored size: 357 Bytes

Contents

module NimbusSpecHelper
  module_function

  def setup
    nimbus_path = File.expand_path(
      File.join(
        File.dirname(__FILE__),
        'json-jwt-nimbus',
        'nimbus_jwe.rb'
      )
    )
    if File.exist? nimbus_path
      require nimbus_path
    end
  end

  def nimbus_available?
    defined? NimbusJWE
  end
end

NimbusSpecHelper.setup

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
json-jwt-1.10.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.9.4 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.9.3 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.9.2 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.9.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.9.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.8.3 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.8.2 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.8.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.8.1.pre spec/helpers/nimbus_spec_helper.rb
json-jwt-1.8.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.7.2 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.7.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.7.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.6.5 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.6.4 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.6.3 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.6.2 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.6.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.6.0 spec/helpers/nimbus_spec_helper.rb