Skip to content

Commit

Permalink
fix: patch tests to read client spec as utf explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Jan 8, 2025
1 parent b7eba5e commit 25f9678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/unleash/client_specification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

JSON.parse(File.read(SPECIFICATION_PATH + '/index.json')).each do |test_file|
describe "for #{test_file}" do
current_test_set = JSON.parse(File.read(SPECIFICATION_PATH + '/' + test_file))
## Encoding is set in this read purely for JRuby. Don't take this out, it'll work locally and then fail on CI
current_test_set = JSON.parse(File.read(SPECIFICATION_PATH + '/' + test_file, encoding: 'utf-8'))
context "with #{current_test_set.fetch('name')} " do
tests = current_test_set.fetch('tests', [])
tests.each do |test|
Expand Down

0 comments on commit 25f9678

Please sign in to comment.