Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix spec: Sinatra::JSON Yajl, it shouldn't test Yajl in JRuby

  • Loading branch information...
commit b114264ae27adc367ed0a2778cbd725281e313e2 1 parent e248664
@rafmagana rafmagana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/json_spec.rb
View
2  spec/json_spec.rb
@@ -107,7 +107,7 @@ def enc.encode(obj) obj.inspect end
get('/').body.should == '42'
end
- describe('Yajl') { it_should_behave_like "a json encoder", "yajl", "Yajl::Encoder" }
+ describe('Yajl') { it_should_behave_like "a json encoder", "yajl", "Yajl::Encoder" } unless defined? JRUBY_VERSION
describe('JSON') { it_should_behave_like "a json encoder", "json", "::JSON" }
describe('OkJson') { it_should_behave_like "a json encoder", nil, "OkJson" }
describe('to_json') { it_should_behave_like "a json encoder", "json", ":to_json" }
Please sign in to comment.
Something went wrong with that request. Please try again.