Sha256: c0a8617469fcaeae67dd1908896b20756421dadd07558df7619786b4f50482ab

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

require 'test_helper'

module Rodimus

  class TestTransformation < MiniTest::Test
    Rodimus.configure do |config|
      config.logger = Logger.new(nil)
    end

    def test_parallel_steps
      incoming = StringIO.new
      transformation = Transformation.new
      number_of_steps = 2 + rand(5)
      number_of_steps.times do 
        transformation.steps << Rodimus::Step.new
      end
      transformation.steps.first.incoming = incoming
      transformation.run
      assert_equal(transformation.steps.count, transformation.ids.count)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rodimus-1.3.1 test/rodimus/transformation_test.rb
rodimus-1.3.0 test/rodimus/transformation_test.rb