Sha256: 70ba3219835ea9103459e0271d377740c4c993a5d891f089c48372fedb7d6c66

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

require "spec_helper"
require "cascade/complex_fields/array_processor"

describe Cascade::ComplexFields::ArrayProcessor do
  def described_class
    Cascade::ComplexFields::ArrayProcessor
  end

  let(:processor) { -> (value) { value + 1 } }
  let(:subject) { described_class.new(processor) }

  it "return processed array" do
    assert_equal subject.call([1, 2, 3]), [2, 3, 4]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cascade-rb-0.2.3 spec/lib/complex_fields/array_processor_spec.rb
cascade-rb-0.2.2 spec/lib/complex_fields/array_processor_spec.rb