Sha256: 800939b646b771601c5caf9a649e2fbc0ce34fd59bba26f39325dfc5c25d8e18
Contents?: true
Size: 552 Bytes
Versions: 13
Compression:
Stored size: 552 Bytes
Contents
# frozen_string_literal: true shared_examples_for "clean engine" do described_class.initializers.each do |initializer| describe "'#{initializer.name}' initializer" do let(:initializer_name_prefix) { described_class.to_s.sub(/::([A-Za-z]+)?Engine$/, "\\1").gsub("::", "").underscore } it "is named correctly" do expect(initializer.name).to start_with("#{initializer_name_prefix}.") expect(initializer.name).to match(/^[a-z0-9_.]+$/) expect(initializer.name).not_to start_with(".") end end end end
Version data entries
13 entries across 13 versions & 1 rubygems