Sha256: c590ca541e3877b89159ddfc9859abaa4a7e199ffc365efb376c30ff00c54526

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

RSpec.describe Dry::Transaction::StepAdapters::Map, :adapter do

  subject { described_class.new }

  let(:options) { {} }

  let(:operation) {
    -> (input) { input.upcase }
  }

  describe "#call" do
    it "return a Success value" do
      expect(subject.(operation, options, 'input')).to eql(Success('INPUT'))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-transaction-0.13.0 spec/unit/step_adapters/map_spec.rb
dry-transaction-0.12.1 spec/unit/step_adapters/map_spec.rb
dry-transaction-0.12.0 spec/unit/step_adapters/map_spec.rb
dry-transaction-0.11.2 spec/unit/step_adapters/map_spec.rb
dry-transaction-0.11.1 spec/unit/step_adapters/map_spec.rb
dry-transaction-0.11.0 spec/unit/step_adapters/map_spec.rb