summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-04-11 13:19:43 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-04-11 13:19:43 -0700
commitc70abbaefbc4ea3fa6450e341bf3818ceca8b2fa (patch)
tree01fed604e141de344424d4904756feb9f269117a
parent3bd0495de9455fd81fdd843f9eab3cf507f3921a (diff)
downloadffi-yajl-c70abbaefbc4ea3fa6450e341bf3818ceca8b2fa.tar.gz
test with yajl-ruby concurrently loaded
-rw-r--r--Gemfile5
-rw-r--r--spec/spec_helper.rb6
2 files changed, 11 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 45b8081..34b35ca 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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|