You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

step_definitions.rb 447 B

2 years ago
123456789101112131415
  1. # frozen_string_literal: true
  2. module Cucumber
  3. class StepDefinitions
  4. def initialize(configuration = Configuration.default)
  5. configuration = Configuration.new(configuration)
  6. @support_code = Runtime::SupportCode.new(nil, configuration)
  7. @support_code.load_files_from_paths(configuration.autoload_code_paths)
  8. end
  9. def to_json(obj = nil)
  10. @support_code.step_definitions.map(&:to_hash).to_json(obj)
  11. end
  12. end
  13. end

No Description

Contributors (1)