Top Level Namespace

Defined Under Namespace

Classes: AbstractMapper

Instance Method Summary collapse

Instance Method Details

#ice_double(*args) ⇒ Double

Returns the double that can be freezed

Parameters:

  • args (Object, Array<Object>)

Returns:

  • (Double)


13
14
15
16
# File 'lib/rspec/doubles.rb', line 13

def ice_double(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  double(*args, options.merge(freeze: nil, frozen?: true))
end