Module: Hanami::Cucumber Private

Defined in:
lib/hanami/cucumber.rb,
lib/hanami/cucumber/version.rb,
lib/hanami/cucumber/commands.rb,
lib/hanami/cucumber/bootstrap.rb,
lib/hanami/cucumber/support/world.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Cucumber and testing support for Hanami applications

Since:

  • 0.1.0

Defined Under Namespace

Modules: Bootstrap, Commands Classes: World

Constant Summary collapse

VERSION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

"0.1.0"

Class Method Summary collapse

Class Method Details

.gem_loaderObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/hanami/cucumber.rb', line 16

def self.gem_loader
  @gem_loader ||= Zeitwerk::Loader.new.tap do |loader|
    root = File.expand_path("..", __dir__)
    loader.tag = "hanami-cucumber"
    loader.inflector = Zeitwerk::GemInflector.new("#{root}/hanami-cucumber.rb")
    loader.push_dir(root)
    loader.ignore(
      "#{root}/hanami-cucumber.rb",
      "#{root}/hanami/cucumber/{rake_tasks,version}.rb",
      "#{root}/hanami/cucumber/support"
    )
    loader.inflector.inflect("cucumber" => "Cucumber")
  end
end