Skip to content

Commit

Permalink
Fix xml parser spec engine loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Aug 5, 2024
1 parent 782c287 commit 75555c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gems/aws-sdk-core/spec/aws/xml/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ module Xml
[:ox, :oga, :nokogiri, :libxml, :rexml].each do |engine|
describe("ENGINE: #{engine}") do

begin
before(:all) do
Parser.engine = engine
rescue LoadError
next
skip "Skipping tests for missing engine: #{engine}"
end

let(:shapes) { ApiHelper.sample_shapes }

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

def parse(xml, to_h = true)
data = parser.parse(xml)
Expand Down

0 comments on commit 75555c9

Please sign in to comment.