Sha256: b9957b91cda3b74dc194c031d47e3c9dd836f4940eceb5f8f903e66db3df4407

Contents?: true

Size: 357 Bytes

Versions: 30

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'
      )
    )
    if File.exist? nimbus_path
      require File.join(nimbus_path, 'nimbus_jwe')
    end
  end

  def nimbus_available?
    defined? NimbusJWE
  end
end

NimbusSpecHelper.setup

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
json-jwt-1.5.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.5.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.4.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.3.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.3.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.2.4 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.2.3 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.2.2 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.2.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.2.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.1.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.0.3 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.0.2 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.0.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-1.0.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-0.8.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-0.8.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-0.7.1 spec/helpers/nimbus_spec_helper.rb
json-jwt-0.7.0 spec/helpers/nimbus_spec_helper.rb
json-jwt-0.7.0.alpha2 spec/helpers/nimbus_spec_helper.rb