Sha256: 69b709ee9985cb6e6111e9f51164b8bbc721b0b4f3d24ab491ef3d653ca82afd

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

require 'conjur/webserver/renderer'

# use our own runner template
module Jasmine
  def self.runner_template
    File.read(File.join(File.dirname(__FILE__), "run.html.erb"))
  end
end

Jasmine.configure do |config|
  class << config
    def renderer
      @renderer ||= Conjur::WebServer::Renderer.new src_dir
    end

    def method_missing *a, &b
      renderer.send(*a, &b)
    rescue NoMethodError
      super
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
conjur-asset-ui-1.4.2 spec/javascripts/support/jasmine_helper.rb
conjur-asset-ui-1.3.2 spec/javascripts/support/jasmine_helper.rb
conjur-asset-ui-1.3.1 spec/javascripts/support/jasmine_helper.rb
conjur-asset-ui-1.3.0 spec/javascripts/support/jasmine_helper.rb
conjur-asset-ui-api-1.2.0 spec/javascripts/support/jasmine_helper.rb