Class: Praegustator::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/praegustator/executor.rb

Instance Method Summary collapse

Constructor Details

#initializeExecutor

Returns a new instance of Executor.



5
6
# File 'lib/praegustator/executor.rb', line 5

def initialize
end

Instance Method Details

#execute(recipes) ⇒ Object



7
8
9
10
11
12
# File 'lib/praegustator/executor.rb', line 7

def execute(recipes)
  recipes.each do |recipe|
    suits = Praegustator::Dsl.new.parse_file(recipe)
    suits.each(&:execute)
  end
end

#execute_check(query, check) ⇒ Object



13
14
15
16
17
# File 'lib/praegustator/executor.rb', line 13

def execute_check(query,check)
  suite = Praegustator::TestSuite.new(query)
  suite.check check
  suite.execute
end