lib/lucid/step_definitions.rb in lucid-0.3.3 vs lib/lucid/step_definitions.rb in lucid-0.4.0
- old
+ new
@@ -1,10 +1,10 @@
module Lucid
class StepDefinitions
- def initialize(configuration = Configuration.default)
- configuration = Configuration.parse(configuration)
- @orchestrator = Runtime::Orchestrator.new(nil, false)
- @orchestrator.load_files_from_paths(configuration.autoload_code_paths)
+ def initialize(context = Context.default)
+ context = Context.parse(context)
+ @orchestrator = ContextLoader::Orchestrator.new(nil, false)
+ @orchestrator.load_files_from_paths(context.autoload_code_paths)
end
def to_json
@orchestrator.step_definitions.map{|stepdef| stepdef.to_hash}.to_json
end