Sha256: 64e102390be1170f5f81d484dcbba5cc11a4eb4264c61b105b8b90170a0b4fde
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
require_relative "makes_double/declares_dry_class" module Mocktail class MakesDouble def initialize @declares_dry_class = DeclaresDryClass.new end def make(klass) dry_type = @declares_dry_class.declare(klass) Double.new( original_type: klass, dry_type: dry_type, dry_instance: dry_type.new ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mocktail-0.0.3 | lib/mocktail/imitates_type/makes_double.rb |
mocktail-0.0.2 | lib/mocktail/imitates_type/makes_double.rb |
mocktail-0.0.1 | lib/mocktail/imitates_type/makes_double.rb |