CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/zeitwerk_compliance_spec.rb
Views: 11704
1
# frozen_string_literal: true
2
3
require 'spec_helper'
4
5
# https://github.com/rails/rails/blob/0fec9536ca43e209064e60f48b0def6bfe539fe2/guides/source/classic_to_zeitwerk_howto.md#rspec
6
RSpec.describe 'ZeitwerkCompliance' do
7
it 'loads all files without errors' do
8
expect do
9
# Ensure we've configured zeitwerk
10
require 'msfenv'
11
Zeitwerk::Loader.eager_load_all
12
end.not_to raise_error
13
end
14
end
15
16