| # require at least 1.1.4 to fix a bug with describing Modules |
| $:.unshift File.join(File.dirname(__FILE__), *%w[.. ext]) |
| # pretend we already loaded fastthread, otherwise the nonblockingserver_spec |
| # $" << 'fastthread.bundle' |
| # turn on deprecation so we can test it |
| # squelch any warnings if we happen to get required twice |
| remove_const(:DEPRECATION) if const_defined? :DEPRECATION |
| require File.dirname(__FILE__) + '/../lib/thrift' |
| # tee is a useful method, so let's let our tests have it |
| Spec::Runner.configure do |configuration| |
| configuration.before(:each) do |
| Thrift.type_checking = true |