Permalink
Browse files

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

  • Loading branch information...
1 parent e248664 commit b114264ae27adc367ed0a2778cbd725281e313e2 @rafmagana rafmagana committed Jun 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/json_spec.rb
View
@@ -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" }

0 comments on commit b114264

Please sign in to comment.