Skip to content

Commit

Permalink
fix xml spec that was failing locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelkster committed Mar 27, 2018
1 parent 42866b7 commit 1621471
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/integration/multi_xml/xml_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
require 'spec_helper'

describe Grape::Xml do
it 'uses multi_xml' do
expect(Grape::Xml).to eq(::MultiXml)
if Object.const_defined? :MultiXml
it 'uses multi_xml' do
expect(Grape::Xml).to eq(::MultiXml)
end
else
it 'uses xml_mini' do
expect(Grape::Xml).to eq(::ActiveSupport::XmlMini)
end
end
end

0 comments on commit 1621471

Please sign in to comment.