diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 71a397b..267983e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,11 @@ $: << File.expand_path(File.join(File.dirname( __FILE__ ), "../lib")) +begin + require 'yajl' +rescue LoadError + # yajl can't be installed on jruby +end + require 'ffi_yajl' RSpec.configure do |c| |