Class: CommitLive::Test
- Inherits:
-
Object
- Object
- CommitLive::Test
- Defined in:
- lib/commit-live/tests/runner.rb
Instance Method Summary collapse
-
#initialize ⇒ Test
constructor
A new instance of Test.
- #run ⇒ Object
- #strategy ⇒ Object
Constructor Details
#initialize ⇒ Test
Returns a new instance of Test.
7 8 9 |
# File 'lib/commit-live/tests/runner.rb', line 7 def initialize() die if !strategy end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 |
# File 'lib/commit-live/tests/runner.rb', line 11 def run strategy.check_dependencies strategy.configure strategy.run end |
#strategy ⇒ Object
17 18 19 |
# File 'lib/commit-live/tests/runner.rb', line 17 def strategy @strategy ||= strategies.map{ |s| s.new() }.detect(&:detect) end |