Module: Hanami::Cucumber::Bootstrap Private

Defined in:
lib/hanami/cucumber/bootstrap.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.

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.bootObject

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



12
13
14
15
16
17
18
19
# File 'lib/hanami/cucumber/bootstrap.rb', line 12

def boot
  return unless from_cucumber?

  ENV["HANAMI_ENV"] ||= "test"
  require "hanami/prepare"
  require_relative "support/world"
  require_relative "support/capybara"
end

.from_cucumber?Boolean

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.

Returns:

  • (Boolean)

Since:

  • 0.1.0



21
22
23
# File 'lib/hanami/cucumber/bootstrap.rb', line 21

def from_cucumber?
  caller.detect { |f| f.include? "/env.rb:" }
end