Sha256: d060d1b006db93c6e6e08be8fd9b425e47681111d9dc97e2c9fb8e700a6339e0

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

describe 'Compiler' do
  it 'transforms hash into hash' do
    hash = {
      a: 'A sentence',
      b: 'B sentence',
      hash: {
        c: 5,
        d: true
      },
      z: false
    }

    success, result = JenkinsPipelineBuilder::Compiler.compile(hash)

    expect(success).to be_true
    result.should == hash
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jenkins_pipeline_builder-0.5.2 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.5.1 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.5.0 spec/unit_tests/compiler_spec.rb