Method: MiniSpec::ClassAPI#reset
- Defined in:
- lib/minispec/api/class.rb
#reset(*importables) ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/minispec/api/class.rb', line 54 def reset *importables importables.each do |importable| MiniSpec::IMPORTABLES.include?(inheritable.to_sym) || raise(ArgumentError, 'Do not know how to reset %s. Use one of %s' % [inheritable.inspect, MiniSpec::IMPORTABLES*', ']) self.send('reset_%s' % inheritable) end end |