lib/bogus/creates_fakes.rb in bogus-0.0.4 vs lib/bogus/creates_fakes.rb in bogus-0.1.0
- old
+ new
@@ -13,10 +13,10 @@
mode = opts.fetch(:as, :instance)
case mode
when :instance
- return klass_copy.new
+ return klass_copy.__create__
when :class
return klass_copy
else
raise UnknownMode.new("Unknown fake creation mode: #{mode}. Allowed values are :instance, :class")
end