diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-05 01:43:29 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-05 01:43:29 -0500 |
commit | 5d9cb10a1075f3bc280f0b0c229c310056649d5e (patch) | |
tree | b199088900e09660ff515fda04f73df735907400 /tests | |
parent | c3ef4af81f76ec1998ef00ab25fd56b8a916a02a (diff) | |
download | horizon-5d9cb10a1075f3bc280f0b0c229c310056649d5e.tar.gz horizon-5d9cb10a1075f3bc280f0b0c229c310056649d5e.tar.bz2 horizon-5d9cb10a1075f3bc280f0b0c229c310056649d5e.tar.xz horizon-5d9cb10a1075f3bc280f0b0c229c310056649d5e.zip |
tests: Ensure Ruby is always in UTF-8 mode
This ensures that tests pass even when run in other locales.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/simulator_spec.rb | 2 | ||||
-rw-r--r-- | tests/spec/spec_helper.rb | 3 | ||||
-rw-r--r-- | tests/spec/validator_spec.rb | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index e48df94..396b77a 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'spec_helper' def run_simulate(extra = '') diff --git a/tests/spec/spec_helper.rb b/tests/spec/spec_helper.rb index 3fa7f0b..73717b3 100644 --- a/tests/spec/spec_helper.rb +++ b/tests/spec/spec_helper.rb @@ -58,6 +58,9 @@ RSpec.configure do |config| end end +Encoding.default_external = Encoding::UTF_8 +Encoding.default_internal = Encoding::UTF_8 + IFILE_PATH = 'installfile' def use_fixture(fixture) diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index 2040fe0..282d7ca 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'spec_helper' def run_validate(extra = '') |