Class: Guard::JRubyMinitest
- 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
-
.reloaders ⇒ Object
readonly
Returns the value of attribute reloaders.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ JRubyMinitest
constructor
A new instance of JRubyMinitest.
- #run_all ⇒ Object
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( = {}) @custom_watchers = [:watchers] general_watchers = [Watcher.new(%r{^(.+)\.rb$}), Watcher.new(%r{^(.+)\.(erb|haml)$})] TestPaths.test_folders = [:test_folders] super(.merge(watchers: general_watchers)) end |
Class Attribute Details
.reloaders ⇒ Object (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_all ⇒ Object
31 32 33 34 |
# File 'lib/guard/jruby-minitest.rb', line 31 def run_all unload_previous_tests super end |