Sha256: 73771f842ba403506821d63c70eb0724a39b37c22befae5edc0cd9d69591f1d6

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

module RSpactor
  
  autoload :UI,             'rspactor/ui'
  autoload :Interactor,     'rspactor/interactor'
  autoload :Listener,       'rspactor/listener'
  autoload :Inspector,      'rspactor/inspector'
  autoload :Runner,         'rspactor/runner'
  
  class << self
    attr_reader :options, :listener, :runner
    
    def start(options = {})
      @options  = options
      @listener = Listener.new
      @runner   = Runner.new
      Interactor.init_signal_traps
      listener.watch do |files|
        Inspector.determine_spec_paths(files)
        runner.start if Inspector.spec_paths?
      end
      UI.info "RSpactor is now watching at '#{Dir.pwd}' using RSpec #{runner.rspec_version}.x"
      listener.start
    end
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspactor-0.7.0.beta.6 lib/rspactor.rb
rspactor-0.7.0.beta.5 lib/rspactor.rb
rspactor-0.7.0.beta.4 lib/rspactor.rb