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:
parent
177348d69b
commit
d934d1035b
2 changed files with 7 additions and 0 deletions
1
sinatra-contrib/spec/respond_with/baz.yajl
Normal file
1
sinatra-contrib/spec/respond_with/baz.yajl
Normal file
|
@ -0,0 +1 @@
|
|||
json = "yajl!"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue