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.
Class Method Summary collapse
- .boot ⇒ Object private
- .from_cucumber? ⇒ Boolean private
Class Method Details
.boot ⇒ Object
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.
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.
21 22 23 |
# File 'lib/hanami/cucumber/bootstrap.rb', line 21 def from_cucumber? caller.detect { |f| f.include? "/env.rb:" } end |