Class: Guard::JRubyMinitest

Inherits:
Minitest show all
Defined in:
lib/guard/jruby-minitest.rb,
lib/guard/jruby-minitest/containment.rb,
lib/guard/jruby-minitest/reloaders/test_paths.rb,
lib/guard/jruby-minitest/reloaders/rails_reloader.rb,
lib/guard/jruby-minitest/reloaders/app_paths_reloader.rb,
lib/guard/jruby-minitest/reloaders/test_paths_reloader.rb,
lib/guard/jruby-minitest/reloaders/factory_girl_reloader.rb

Defined Under Namespace

Modules: TestPaths Classes: AppPathsReloader, Containment, FactoryGirlReloader, RailsReloader, TestPathsReloader

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ JRubyMinitest

Returns a new instance of JRubyMinitest.



24
25
26
27
28
29
# File 'lib/guard/jruby-minitest.rb', line 24

def initialize(options = {})
  @custom_watchers = options[:watchers]
  general_watchers = [Watcher.new(%r{^(.+)\.rb$}), Watcher.new(%r{^(.+)\.(erb|haml)$})]
  TestPaths.test_folders = options[:test_folders]
  super(options.merge(watchers: general_watchers))
end

Class Attribute Details

.reloadersObject (readonly)

Returns the value of attribute reloaders.



16
17
18
# File 'lib/guard/jruby-minitest.rb', line 16

def reloaders
  @reloaders
end

Class Method Details

.template(plugin_location) ⇒ Object



44
45
46
# File 'lib/guard/jruby-minitest.rb', line 44

def self.template(plugin_location)
  File.read("#{ plugin_location }/lib/guard/jruby-minitest/templates/Guardfile")
end

Instance Method Details

#run_allObject



31
32
33
34
# File 'lib/guard/jruby-minitest.rb', line 31

def run_all
  unload_previous_tests
  super
end