lib/bogus/fakes/fake.rb in bogus-0.1.4 vs lib/bogus/fakes/fake.rb in bogus-0.1.5
- old
+ new
@@ -27,10 +27,11 @@
class << self
alias :__create__ :new
def new(*args, &block)
- __record__(:new, *args, &block)
+ value = __record__(:new, *args, &block)
+ return value unless ::Bogus::UndefinedReturnValue.undefined?(value)
__create__
end
end
end
end