Top Level Namespace
Defined Under Namespace
Classes: AbstractMapper
Instance Method Summary collapse
-
#ice_double(*args) ⇒ Double
Returns the double that can be freezed.
Instance Method Details
#ice_double(*args) ⇒ Double
Returns the double that can be freezed
13 14 15 16 |
# File 'lib/rspec/doubles.rb', line 13 def ice_double(*args) = args.last.is_a?(Hash) ? args.pop : {} double(*args, .merge(freeze: nil, frozen?: true)) end |