Class: Sapphire::DSL::TestPlans::PathHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/DSL/TestPlans/PathHandler.rb

Instance Method Summary collapse

Instance Method Details

#Handle(item) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/sapphire/DSL/TestPlans/PathHandler.rb', line 5

def Handle(item)
  x = ""
  x = AppConfig.Current.SpecsPath if AppConfig.Current and AppConfig.Current.SpecsPath
  Dir[x + item + '*.rb'].each  do |file|
    load file
    Runner.instance.last_scenario.file_name = file
    Runner.instance.last_scenario.execute
  end
end