require 'rubygems'
# require at least 1.1.4 to fix a bug with describing Modules
gem 'rspec', '>= 1.1.4'
require 'spec'

# pretend we already loaded fastthread, otherwise the nonblockingserver_spec
# will get screwed up
# $" << 'fastthread.bundle'

# turn on deprecation so we can test it
module Thrift
  # squelch any warnings if we happen to get required twice
  remove_const(:DEPRECATION) if const_defined? :DEPRECATION
  DEPRECATION = true
end

require File.dirname(__FILE__) + '/../lib/thrift'

class Object
  # tee is a useful method, so let's let our tests have it
  def tee(&block)
    block.call(self)
    self
  end
end

Spec::Runner.configure do |configuration|
  configuration.before(:each) do
    Thrift.type_checking = true
  end
end

require 'rubygems'
# require at least 1.1.4 to fix a bug with describing Modules
gem 'rspec', '>= 1.1.4'
require 'spec'

$:.unshift File.join(File.dirname(__FILE__), *%w[.. ext])

# pretend we already loaded fastthread, otherwise the nonblockingserver_spec
# will get screwed up
# $" << 'fastthread.bundle'

# turn on deprecation so we can test it
module Thrift
  # squelch any warnings if we happen to get required twice
  remove_const(:DEPRECATION) if const_defined? :DEPRECATION
  DEPRECATION = true
end

require File.dirname(__FILE__) + '/../lib/thrift'

class Object
  # tee is a useful method, so let's let our tests have it
  def tee(&block)
    block.call(self)
    self
  end
end

Spec::Runner.configure do |configuration|
  configuration.before(:each) do
    Thrift.type_checking = true
  end
end

Add ext/ to loadpath so BinaryProtocolAccelerated specs pass
rb: Add ext/ to loadpath so BinaryProtocolAccelerated specs pass


git-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@680539 13f79535-47bb-0310-9956-ffa450edef68
