You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate RSpec 4 compatibility via disable_monkey_patching!
RSpec 4 is expected to remove the globally-exposed DSL (top-level
describe/context/etc.), equivalent to RSpec 3's
config.expose_dsl_globally = false. Enabling
config.disable_monkey_patching! now under RSpec 3 lets us see
whether the suite is portable to RSpec 4.
Set config.disable_monkey_patching! in spec/spec_helper.rb. With
the global DSL disabled, every spec file's outermost describe must
be qualified, so convert the 29 top-level describe calls across
spec/plsql/*.rb to RSpec.describe. Nested describe/context/
shared_examples calls are unaffected. The suite already uses
expect(...).to and allow(...).to receive(...) syntax, so the
expect_with / mock_with portions of disable_monkey_patching! are
no-ops here.
bundle exec rspec spec --dry-run reports 461 examples, 0 failures,
confirming every spec file loads under the new configuration.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments