Sha256: f2e4867cb32ec80f48e13f03d4595823204e7d0dc58e3912850d887d59cc7995

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 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

6 entries across 6 versions & 1 rubygems

Version Path
jenkins_pipeline_builder-0.4.2 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.4.0 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.3.2 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.3.1 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.3.0 spec/unit_tests/compiler_spec.rb
jenkins_pipeline_builder-0.2.3 spec/unit_tests/compiler_spec.rb