spec/unit/rack/formatters/xml_spec.rb in goliath-1.0.4 vs spec/unit/rack/formatters/xml_spec.rb in goliath-1.0.5
- old
+ new
@@ -12,14 +12,14 @@
@app = double('app').as_null_object
@xml = Goliath::Rack::Formatters::XML.new(@app)
end
it 'checks content type for application/xml' do
- @xml.xml_response?({'Content-Type' => 'application/xml'}).should be_true
+ @xml.xml_response?({'Content-Type' => 'application/xml'}).should be_truthy
end
it 'returns false for non-applicaton/xml types' do
- @xml.xml_response?({'Content-Type' => 'application/json'}).should be_false
+ @xml.xml_response?({'Content-Type' => 'application/json'}).should be_falsey
end
it 'calls the app with the provided environment' do
env_mock = double('env').as_null_object
@app.should_receive(:call).with(env_mock).and_return([200, {}, {"a" => 1}])