Sorry to do this to you at the end of such a long review process, @chikoon , but I think that directly setting a constant/global inside a test pollutes the environment for the rest of the tests. A safer approach would explicitly contextualize it:

context "for admin users" do
  before { Settings.features.stub(:reauthentication).and_return(true) }