Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #100 from patriciomacadden/yajl-tests-fix
Browse files Browse the repository at this point in the history
Fix tests for jruby
  • Loading branch information
rkh committed Apr 6, 2013
2 parents 639acf8 + eac5ed0 commit d01d2cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/respond_with_spec.rb
Expand Up @@ -229,10 +229,12 @@ def object.to_pdf; "hi" end
body.should == "hi" body.should == "hi"
end end


it 'uses yajl for json' do unless defined? JRUBY_VERSION
respond_with :baz it 'uses yajl for json' do
req(:json).should be_ok respond_with :baz
body.should == "\"yajl!\"" req(:json).should be_ok
body.should == "\"yajl!\""
end
end end
end end


Expand Down

0 comments on commit d01d2cd

Please sign in to comment.