diff --git a/spec/unit/pops/types/class_loader_spec.rb b/spec/unit/pops/types/class_loader_spec.rb new file mode 100644 index 000000000..66ccc2b18 --- /dev/null +++ b/spec/unit/pops/types/class_loader_spec.rb @@ -0,0 +1,10 @@ +require 'spec_helper' +require 'puppet/pops' + +describe 'the Puppet::Pops::Types::ClassLoader' do + it 'should produce path alternatives for CamelCase classes' do + expected_paths = ['puppet_x/some_thing', 'puppetx/something'] + # path_for_name method is private + expect(Puppet::Pops::Types::ClassLoader.send(:paths_for_name, ['PuppetX', 'SomeThing'])).to include(*expected_paths) + end +end \ No newline at end of file