Sha256: d9b840d752ea98298e0be9d81224af1dcecc4060ba916598cef3a934942a1a36

Contents?: true

Size: 292 Bytes

Versions: 10

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Hanami do
  describe ".application" do
    it "it doesn't assign when anonymous class inherits Hanami::Application" do
      Class.new(Hanami::Application)
      expect { Hanami.app }.to raise_error("Hanami.app not configured")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hanami-2.0.3 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.2 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.1 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0.rc1 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0.beta4 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0.beta3 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0.beta2 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0.beta1.1 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb
hanami-2.0.0.beta1 spec/isolation/hanami/application/inherit_anonymous_class_spec.rb