Method: MuchStub::Stub#teardown

Defined in:
lib/much-stub.rb

#teardownObject



152
153
154
155
156
157
# File 'lib/much-stub.rb', line 152

def teardown
  @metaclass.send(:undef_method, @method_name)
  MuchStub.send(:remove_instance_variable, @ivar_name)
  @metaclass.send(:alias_method, @method_name, @name)
  @metaclass.send(:undef_method, @name)
end