Skip to content

Commit

Permalink
make test locale agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed May 14, 2018
1 parent bc764b4 commit 6c3900e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_helper.rb
@@ -1,5 +1,9 @@
ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)

# localization agnostic tests
ENV["LC_ALL"] = "en_US.utf-8"
ENV["LANG"] = "en_US.utf-8"

require "yast"
require "yast/rspec"
require "yaml"
Expand All @@ -8,6 +12,7 @@
# force utf-8 encoding for external
Encoding.default_external = Encoding::UTF_8


RSpec.configure do |config|
config.mock_with :rspec do |mocks|
# If you misremember a method name both in code and in tests,
Expand Down

0 comments on commit 6c3900e

Please sign in to comment.