Skip to content

Commit

Permalink
Fix jruby tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Aug 5, 2024
1 parent 7cb9135 commit 7a9c15f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gems/aws-sdk-core/spec/aws/xml/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ module Xml
describe Parser do
[:ox, :oga, :nokogiri, :libxml, :rexml].each do |engine|
describe("ENGINE: #{engine}") do
before(:all) do
Parser.engine = engine
rescue LoadError
skip "Skipping tests for missing engine: #{engine}"
end

let(:shapes) { ApiHelper.sample_shapes }

let(:parser) do
api = ApiHelper.sample_api(shapes:shapes)
rules = api.operation(:example_operation).output
Parser.engine = engine
Parser.new(rules)
end

Expand Down

0 comments on commit 7a9c15f

Please sign in to comment.