File: nimbus_spec_helper.rb

package info (click to toggle)
ruby-json-jwt 1.16.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: ruby: 2,858; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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