Module: Hanami::RSpec Private
- Defined in:
- lib/hanami/rspec.rb,
lib/hanami/rspec/version.rb,
lib/hanami/rspec/commands.rb,
lib/hanami/rspec/generators/part.rb,
lib/hanami/rspec/generators/slice.rb,
lib/hanami/rspec/generators/action.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.
RSpec and testing support for Hanami applications.
Defined Under Namespace
Modules: Commands, Generators
Constant Summary collapse
- VERSION =
The current hanami-rspec version.
"2.3.0"
Class Method Summary collapse
- .gem_loader ⇒ Object private
Class Method Details
.gem_loader ⇒ 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.
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/hanami/rspec.rb', line 16 def self.gem_loader @gem_loader ||= Zeitwerk::Loader.new.tap do |loader| root = File.("..", __dir__) loader.tag = "hanami-rspec" loader.inflector = Zeitwerk::GemInflector.new("#{root}/hanami-rspec.rb") loader.push_dir(root) loader.ignore( "#{root}/hanami-rspec.rb", "#{root}/hanami/rspec/{rake_tasks,version}.rb" ) loader.inflector.inflect("rspec" => "RSpec") end end |