diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-15 13:26:50 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-15 13:26:50 +0100 |
commit | 576b58803635de9d16dd7cd1c2a68b692ba11743 (patch) | |
tree | bfddbeaad716b5eeabebb0dc28e11370ba7f89f0 /spec/lib/i18n_interpolation_spec.rb | |
parent | 7d9de8a5ffe67e6bc49271a082c1d8e43dbb0f03 (diff) |
Add source file encoding for all ruby files.
This is important under ruby 1.9 in order to determine the
encoding that will be used for new strings created in the code in
the file.
Diffstat (limited to 'spec/lib/i18n_interpolation_spec.rb')
-rw-r--r-- | spec/lib/i18n_interpolation_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/i18n_interpolation_spec.rb b/spec/lib/i18n_interpolation_spec.rb index 47037ecdb..8c5b8d1b5 100644 --- a/spec/lib/i18n_interpolation_spec.rb +++ b/spec/lib/i18n_interpolation_spec.rb @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- encoding : utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "when using i18n" do @@ -58,7 +58,7 @@ describe "gettext_interpolate" do result = gettext_interpolate(string, :a => "foo".html_safe) result.should == "Hello foo" result.should_not be_html_safe - end + end end context "html safe string" do @@ -74,6 +74,6 @@ describe "gettext_interpolate" do result = gettext_interpolate(string, :a => "foo&".html_safe) result.should == "Hello foo&" result.should be_html_safe - end + end end end |