Sha256: 43bb2d4c1b3e8ddc007c99cd2c5e36a8a79268708f2e5ec56e690ad917f84b95

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

require 'tilt'
require 'coffee_script'
require 'sprockets'
require 'execjs'
require 'bundler/setup'
require 'test/unit'


Tilt::CoffeeScriptTemplate.default_bare=true
class QueryExecutor
  @@ctx = nil

  def self.ctx
    unless @@ctx
      @@ctx = Sprockets::Environment.new(File.expand_path("../../", __FILE__))
      @@ctx.append_path "app/assets/javascripts"
    end
    @@ctx
  end

  def self.patient_api_javascript
    self.ctx.find_asset('patient')
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hquery-patient-api-1.1.1 test/test_helper.rb
hquery-patient-api-1.1.0 test/test_helper.rb