GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
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
but at any rate this change fixed things, and would certainly be required for anyone with a different default source encoding.
specify source encoding for a test file with a snowman in it
2.7 doesn't fully work with ruby 1.9, so you might have an uphill battle getting these all to work. I can pull this in for 3.x, which does fully support ruby 1.9.3.
Ah, I'll see if I can get 1.8 installed - thanks.
This is in 3.x in a different form. We should backport 614ee9c to 2.7.x