Sha256: c2508f962f07e3c4cc81c90572088abf4ef29ff26720ce4875cb2fd155b42673

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

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

describe 'ModuleRegistry' do

  it 'should return item by a specified path' do

    registry = JenkinsPipelineBuilder::ModuleRegistry.new(
      zz: {
        aa: 'aa',
        bb: 'bb',
        cc: {
          dd: 'dd'
        }
      }
    )

    registry.get('zz/aa').should be == 'aa'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jenkins_pipeline_builder-0.5.1 spec/unit_tests/module_registry_spec.rb
jenkins_pipeline_builder-0.5.0 spec/unit_tests/module_registry_spec.rb