Sha256: eaa1a61ecbf6525c3be27ffb2812e40bed6f81b3014b2dfaec35c7cdf5889ab8
Contents?: true
Size: 888 Bytes
Versions: 5
Compression:
Stored size: 888 Bytes
Contents
# frozen_string_literal: true require "hanami/action" require "hanami/logger" module Bookshelf class App < Hanami::App end end module Web end slice = Hanami.app.register_slice :web, namespace: Web Hanami.prepare Hanami.app.routes do mount :web, at: "/" do root to: "home#index" end end module Web class Action < Hanami::Action end module Actions module Home class Index < Web::Action end end end end slice.register "actions.home.index" do Web::Actions::Home::Index.new end RSpec.describe Hanami do describe ".boot" do it "assigns Hanami.app, .root, and .logger" do pending "Failing due to dry-system changes" Hanami.boot expect(Hanami.app.ancestors).to include(Hanami::Application) expect(Hanami.app.root).to eq(Dir.pwd) expect(Hanami.logger).to be_kind_of(Dry::Logger::Dispatcher) end end end
Version data entries
5 entries across 5 versions & 1 rubygems