Sha256: 93fcc49317bba51263ed3755514613a566021fa4a6b602bea6ef7d97844eff82

Contents?: true

Size: 428 Bytes

Versions: 52

Compression:

Stored size: 428 Bytes

Contents

require 'json'
module Cucumber
  class StepDefinitions
    def initialize(configuration = Configuration.default)
      configuration = Configuration.parse(configuration)
      @support_code = Runtime::SupportCode.new(nil, false)
      @support_code.load_files_from_paths(configuration.autoload_code_paths)
    end
    
    def to_json
      @support_code.step_definitions.map{|stepdef| stepdef.to_hash}.to_json
    end
  end
end

Version data entries

52 entries across 50 versions & 11 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
casecumber-1.0.2.1 lib/cucumber/step_definitions.rb
casecumber-1.2.1.cb2 lib/cucumber/step_definitions.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/step_definitions.rb
cucumber-1.2.1 lib/cucumber/step_definitions.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/lib/cucumber/step_definitions.rb
cucumber-1.2.0 lib/cucumber/step_definitions.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definitions.rb