Method: Mock5#mounted?

Defined in:
lib/mock5.rb

#mounted?(*apis) ⇒ Boolean

Returns true if all given APIs are mounted. false otherwise.

Parameters:

  • apis (Enum #to_set)

    a list of APIs to check

Returns:

  • (Boolean)

    true if all given APIs are mounted, false otherwise



80
81
82
# File 'lib/mock5.rb', line 80

def mounted?(*apis)
  apis.to_set.subset?(mounted_apis)
end