summaryrefslogtreecommitdiffstats
path: root/spec/shared_behaviours
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-04-13 15:00:00 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-04-13 15:03:51 -0700
commit64c12bd7ef38979ff756f97fc72adc737fe7b608 (patch)
tree15ad5e158dbf8d77dee61c643a35162df9c08ecc /spec/shared_behaviours
parent2d459fc5dcf13a0aadf4556a80d7bb6c57dad033 (diff)
downloadpuppet-64c12bd7ef38979ff756f97fc72adc737fe7b608.tar.gz
puppet-64c12bd7ef38979ff756f97fc72adc737fe7b608.tar.xz
puppet-64c12bd7ef38979ff756f97fc72adc737fe7b608.zip
(#6830) Fix UTF-8 encoding issue for Ruby 1.9
If you're going to use special characters in a file and use Ruby 1.9 you need to specify the character encoding at the top of the file. Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'spec/shared_behaviours')
-rwxr-xr-xspec/shared_behaviours/things_that_declare_options.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/shared_behaviours/things_that_declare_options.rb b/spec/shared_behaviours/things_that_declare_options.rb
index f7512dec0..ac358eacd 100755
--- a/spec/shared_behaviours/things_that_declare_options.rb
+++ b/spec/shared_behaviours/things_that_declare_options.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
shared_examples_for "things that declare options" do
it "should support options without arguments" do
subject = add_options_to { option "--bar" }