Method: Mock5#mount
- Defined in:
- lib/mock5.rb
#mount(*apis) ⇒ Set
Mounts given list of APIs. Returns a list of APIs that were actually mounted. The APIs that were already mounted when the method is called are not included in the return value.
51 52 53 54 55 56 57 |
# File 'lib/mock5.rb', line 51 def mount(*apis) apis.to_set.subtract(mounted_apis).each do |api| check_api api mounted_apis.add api registry.register_request_stub api.request_stub end end |