require "rails_helper" module PaperTrail RSpec.describe Config do describe ".instance" do it "returns the singleton instance" do expect { described_class.instance }.to_not raise_error end end describe ".new" do it "raises NoMethodError" do expect { described_class.new }.to raise_error(NoMethodError) end end end end