appsignal / appsignal-ruby

🟥 AppSignal for Ruby gem
https://www.appsignal.com/ruby
MIT License
183 stars 115 forks source link

Stub constants in specs #1285

Closed tombruijn closed 2 months ago

tombruijn commented 2 months ago

Instead of defining constants and manually removing them with remove_const use the built-in RSpec helper stub_const. This will prevent constants from leaking into other specs.

[skip review] [skip changeset]

Part of #299