Module: MacSpec::MockingFramework::KernelExtension

Defined in:
lib/mac_spec/mocking_framework/extensions/kernel_extension.rb

Instance Method Summary collapse

Instance Method Details

#mock(name, options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/mac_spec/mocking_framework/extensions/kernel_extension.rb', line 4

def mock(name, options={})
  mock_options = {}
  mock_options[:null_object] = options.delete(:null_object)
  mock_options[:stubs] = options
  MacSpec::MockingFramework::Mock.new(name,mock_options)
end