spec/depth/enumerable_spec.rb in depth-0.3.0 vs spec/depth/enumerable_spec.rb in depth-0.4.0

- old
+ new

@@ -7,12 +7,16 @@ let(:enumerable_class) do Class.new do include Depth::Actions include Depth::Enumeration::Enumerable - attr_reader :base + attr_reader :base, :creation_proc, :next_proc, + :key_transformer def initialize(base) @base = base + @creation_proc = proc { |o, k, v| o[k] = v } + @next_proc = proc { |o, k| o[k] } + @key_transformer = proc { |_, k| k } end end end let(:hash) do