Skip to content
Browse files

Merge pull request #100 from patriciomacadden/yajl-tests-fix

Fix tests for jruby
  • Loading branch information...
2 parents 639acf8 + eac5ed0 commit d01d2cd0f5ed5919af05128d4b72d80af139e5fd @rkh rkh committed Apr 6, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 spec/respond_with_spec.rb
View
10 spec/respond_with_spec.rb
@@ -229,10 +229,12 @@ def object.to_pdf; "hi" end
body.should == "hi"
end
- it 'uses yajl for json' do
- respond_with :baz
- req(:json).should be_ok
- body.should == "\"yajl!\""
+ unless defined? JRUBY_VERSION
+ it 'uses yajl for json' do
+ respond_with :baz
+ req(:json).should be_ok
+ body.should == "\"yajl!\""
+ end
end
end

0 comments on commit d01d2cd

Please sign in to comment.
Something went wrong with that request. Please try again.