minor: check bson and bson_ext versions

This commit is contained in:
Kyle Banker 2010-04-05 15:30:18 -04:00
parent cc253cc111
commit fc1edd215e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ begin
# Need this for running test with and without c ext in Ruby 1.9.
raise LoadError if ENV['TEST_MODE'] && !ENV['C_EXT']
require 'bson_ext/cbson'
raise LoadError unless defined?(CBson::VERSION)# && CBson::VERSION == Mongo::BSON::VERSION
raise LoadError unless defined?(CBson::VERSION) && CBson::VERSION == BSON::VERSION
require 'bson/bson_c'
module BSON
BSON_CODER = BSON_C