Sha256: f9dca50242954a4810878b41857271498d7150b9be1aae7f75fde0afd71c8667
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true RSpec.describe "App action / Configuration", :app_integration do before do module TestApp class App < Hanami::App config.actions.default_response_format = :json register_slice :main end end Hanami.app.prepare module TestApp class Action < Hanami::Action end end end let(:action_class) { TestApp::Action } subject(:configuration) { action_class.config } it "applies 'config.actions' configuration from the app" do expect(configuration.default_response_format).to eq :json end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.beta1.1 | spec/new_integration/action/configuration_spec.rb |
hanami-2.0.0.beta1 | spec/new_integration/action/configuration_spec.rb |