Sha256: 9eb58a88fdd0cfcbe1096a883100f77511fca91a1b7104fef4bfce8453779fc2
Contents?: true
Size: 816 Bytes
Versions: 26
Compression:
Stored size: 816 Bytes
Contents
require "spec_helper" RSpec.describe <%= configuration.project_namespaced_class %>::Configuration::Loader do subject(:loader) { described_class.with_defaults } let(:content) { <%= configuration.project_namespaced_class %>::Configuration::Content.new } describe ".call" do it "answers default configuration" do expect(described_class.call).to be_a(<%= configuration.project_namespaced_class %>::Configuration::Content) end end describe ".with_defaults" do it "answers default configuration" do expect(described_class.with_defaults.call).to eq(content) end end describe "#call" do it "answers default configuration" do expect(loader.call).to eq(content) end it "answers frozen configuration" do expect(loader.call).to be_frozen end end end
Version data entries
26 entries across 26 versions & 1 rubygems