Method: Mock5#unmount
- Defined in:
- lib/mock5.rb
#unmount(*apis) ⇒ Set
Unmount given APIs. Returns only the list of APIs that were actually unmounted. If the API wasn’t mounted when the method is called, it won’t be included in the return value.
66 67 68 69 70 71 72 73 |
# File 'lib/mock5.rb', line 66 def unmount(*apis) mounted_apis.intersection(apis).each do |api| mounted_apis.delete api if registry.request_stubs.include?(api.request_stub) registry.remove_request_stub api.request_stub end end end |