Sha256: 8945abe490feb1eb4a2304f8caf48358a600eea90458b6d3c1b2adc326caf080
Contents?: true
Size: 394 Bytes
Versions: 5
Compression:
Stored size: 394 Bytes
Contents
require "hanami/slice" RSpec.describe Hanami::Slice, :app_integration do before do module TestApp class App < Hanami::App end end end describe ".prepare" do it "raises an error if the slice class is anonymous" do expect { Class.new(described_class).prepare } .to raise_error Hanami::SliceLoadError, /Slice must have a class name/ end end end
Version data entries
5 entries across 5 versions & 1 rubygems