diff options
-rw-r--r-- | Gemfile | 5 | ||||
-rw-r--r-- | spec/spec_helper.rb | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -6,6 +6,11 @@ platforms :rbx do gem 'rubysl', '~> 2.0' end +group :development do + # for testing loading concurrently with yajl-ruby, not on jruby + gem 'yajl-ruby', :platforms => [ :ruby, :mswin, :mingw ] +end + group :development_extras do gem 'rubocop', '= 0.21.0' gem 'reek', '= 1.3.7' 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| |