We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42866b7 commit 1621471Copy full SHA for 1621471
spec/integration/multi_xml/xml_spec.rb
@@ -1,7 +1,13 @@
1
require 'spec_helper'
2
3
describe Grape::Xml do
4
- it 'uses multi_xml' do
5
- expect(Grape::Xml).to eq(::MultiXml)
+ if Object.const_defined? :MultiXml
+ it 'uses multi_xml' do
6
+ expect(Grape::Xml).to eq(::MultiXml)
7
+ end
8
+ else
9
+ it 'uses xml_mini' do
10
+ expect(Grape::Xml).to eq(::ActiveSupport::XmlMini)
11
12
end
13
0 commit comments