Class: Opal::Minitest::RakeTask::Server

Inherits:
Server
  • Object
show all
Defined in:
lib/opal/minitest/rake_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Server

Returns a new instance of Server.



49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/opal/minitest/rake_task.rb', line 49

def initialize(args)
  gem_path = Pathname.new(__FILE__).join('../../../..')
  self.index_path = gem_path.join('opal/opal/minitest/runner.html.erb').to_s

  super

  $omt_requires_glob = args.fetch(:requires_glob)

  $LOAD_PATH.each { |p| append_path(p) }
  append_path 'test'
  self.main = 'opal/minitest/loader'
  self.debug = false
end

Instance Attribute Details

#requires_globObject (readonly)

Returns the value of attribute requires_glob.



47
48
49
# File 'lib/opal/minitest/rake_task.rb', line 47

def requires_glob
  @requires_glob
end