add test for #87

This commit is contained in:
Zachary Scott 2013-03-25 23:27:25 -04:00
parent 177348d69b
commit d934d1035b
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
json = "yajl!"

View File

@ -228,6 +228,12 @@ describe Sinatra::RespondWith do
req(:pdf).should be_ok
body.should == "hi"
end
it 'uses yajl for json' do
respond_with :baz
req(:json).should be_ok
body.should == "\"yajl!\""
end
end
describe 'customizing' do