Skip to content

Commit

Permalink
Fix encoding for query param tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jul 27, 2024
1 parent ce373b3 commit 7d02950
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
45 changes: 30 additions & 15 deletions codegen/projections/rails_json/spec/protocol_spec.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ RubyImportContainer.CGI, getRubyArrayFromList(queryParams))
.write("actual_query = $T.parse(request.uri.query)",
RubyImportContainer.CGI)
.openBlock("expected_query.each do |k, v|")
.write("expect(actual_query[k]).to eq(v)")
.write("actual = actual_query[k].map { |s| s.force_encoding('utf-8') }")
.write("expect(actual).to eq(v)")
.closeBlock("end");
}
}
Expand Down

0 comments on commit 7d02950

Please sign in to comment.