puppetlabs/puppet — pull request #987 by djmitche (2012-07-31 01:24:49+00:00)
Title: specify source encoding for a test file with a snowman in it

As part of my quest to get the tests running, I ran into

/Users/dustin/.rvm/gems/ruby-1.9.3-p194@puppetlabs/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load': /Users/dustin/code/moz/t/puppetlabs/puppet/spec/unit/ssl/certificate_authority_spec.rb:502: invalid multibyte char (US-ASCII) (SyntaxError)

It seems like my default source encoding is UTF-8:

dustin@Lorentz ~/code/moz/t/puppetlabs/puppet [set-source-encoding] $ ruby
p __ENCODING__
#

but at any rate this change fixed things, and would certainly be required for anyone with a different default source encoding.