Module: RSpec::Puppet

Defined in:
lib/rspec-puppet/support_copy.rb,
lib/rspec-puppet-yaml/version.rb,
lib/rspec-puppet/matcher_helpers.rb,
lib/rspec-puppet-yaml/data_helpers.rb

Overview

I was forced to copy the guess_type_from_path and ref functions from rspec-puppet/support (see the respective see references) and then slam everything into the global scope because I couldn't find a Ruby way to call these two function from my own namespaced code while keeping RSpec happy from the namespaced context. I tried a Class-based approach. I tried a Module-extend approach. Neither worked well. While I was able to make calls to these rspec-puppet functions from the appropriate scope in either model, doing so either broke RSpec's ability to find its own it or my namedspaced apply_content method (Class) or function (Module). I've now uterly burned over 30 hours of my life on this problem, so I'm "throwing in the towel" and just copying this code. I'm DONE fighting with Ruby on this issue! I'm sorry I wasn't smart enough to appease Ruby. Yes, it SUCKS to be blocked from using an OOP model or any namespaces but I just can't find any other way to move forward at this point... if YOU (yes, YOU) can refactor the necessary code into proper namespaces, then by all means; PLEASE feel free to open a Pull Request that that effect. I'd love to learn how you pull it off!

Defined Under Namespace

Modules: Yaml Classes: MatcherHelpers