Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 420 Bytes

RSpec-RemoveConst.md

File metadata and controls

24 lines (16 loc) · 420 Bytes

Pattern: Use of remove_const

Issue: -

Description

Checks that remove_const is not used in specs.

Examples

# bad
it 'does something' do
  Object.send(:remove_const, :SomeConstant)
end

before do
  SomeClass.send(:remove_const, :SomeConstant)
end

Further Reading