Sha256: 80bb1423dfb5de57b2f2b1332468cfba1c8dabef66f05409111182b0ce771b35

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

require "transformator/transformation"
require "transformator/transformation/step"

describe Transformator::Transformation do
  class SomeStep < Transformator::Transformation::Step
    def call
      self.target = { muff: 1 }
    end
  end

  class SomeTransformation < Transformator::Transformation
    sequence [
      SomeStep
    ]
  end

  it "foo" do
    result = SomeTransformation.call({
      my: {
        awesome: {
          source: {
            title: "foo",
            description: "bar"
          }
        }
      }
    })

    binding.pry
    result
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transformator-1.0.1 spec/transformator/transformation_spec.rb
transformator-1.0.0 spec/transformator/transformation_spec.rb