Class: AllGreen::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/all_green/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Runner

Returns a new instance of Runner.



5
6
7
8
9
10
11
12
# File 'lib/all_green/runner.rb', line 5

def initialize(options = {})
	@options = options
	@options[:order] ||= [:rspec, :rails_tests, :cucumber, :spinach]

	@engines = []
	load_engines
	sort_engines
end

Instance Method Details

#runObject



14
15
16
# File 'lib/all_green/runner.rb', line 14

def run
	@engines.map(&:run).all?
end