1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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