Sha256: edc39f82097c1f2eaf0b6cb606f44244f8a6ead7ccb486822b9a7401762ff9e9
Contents?: true
Size: 435 Bytes
Versions: 4
Compression:
Stored size: 435 Bytes
Contents
require 'spec_helper' describe Transproc::Composer do subject(:object) do Class.new do include Transproc::Composer def fn compose do |fns| fns << t(:map_array, t(:symbolize_keys)) << t(:map_array, t(:map_key, :age, t(:to_integer))) end end end.new end it 'allows composing functions' do expect(object.fn[[{ 'age' => '12' }]]).to eql([{ age: 12 }]) end end
Version data entries
4 entries across 4 versions & 1 rubygems