summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 267983e..cb00af6 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,8 @@
$: << File.expand_path(File.join(File.dirname( __FILE__ ), "../lib"))
+# load yajl-ruby into the same process (tests that both c-libs can be
+# linked in the same process). this should work, see:
+# http://stackoverflow.com/questions/3232822/linking-with-multiple-versions-of-a-library
begin
require 'yajl'
rescue LoadError