diff --git a/spec/respond_with_spec.rb b/spec/respond_with_spec.rb index 1a78b30..3f4376b 100644 --- a/spec/respond_with_spec.rb +++ b/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