Sha256: ea513832358cae9101d5d13db97964620a66b904fdfe2b91f2fa7da69524bc99
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true require "dry/inflector" RSpec.describe Hanami::Config, "#render_detailed_errors" do let(:config) { described_class.new(app_name: app_name, env: env) } let(:app_name) { Hanami::SliceName.new(double(name: "MyApp::App"), inflector: Dry::Inflector.new) } subject(:render_detailed_errors) { config.render_detailed_errors } context "development mode" do let(:env) { :development } it { is_expected.to be true } end context "test mode" do let(:env) { :test } it { is_expected.to be true } end context "production mode" do let(:env) { :production } it { is_expected.to be false } end end
Version data entries
4 entries across 4 versions & 1 rubygems