blob: 874ed2d114e5070f132afbe5c919c29857a362fa [file] [log] [blame]
Kevin Clark3eca0782008-06-18 00:54:53 +00001require 'rubygems'
Kevin Clark356f8612008-06-18 01:08:05 +00002# require at least 1.1.4 to fix a bug with describing Modules
3gem 'rspec', '>= 1.1.4'
Kevin Clark3eca0782008-06-18 00:54:53 +00004require 'spec'
5
Kevin Clark3c59aff2008-06-18 01:17:37 +00006# pretend we already loaded fastthread, otherwise the nonblockingserver_spec
7# will get screwed up
8# $" << 'fastthread.bundle'
9
Kevin Clarkd47cd662008-06-18 01:05:17 +000010# turn on deprecation so we can test it
11module Thrift
12 DEPRECATION = true
13end
14
Kevin Clark3eca0782008-06-18 00:54:53 +000015require File.dirname(__FILE__) + '/../lib/thrift'
Kevin Clark0ff9e8c2008-06-18 01:05:03 +000016
17class Object
18 # tee is a useful method, so let's let our tests have it
19 def tee(&block)
20 block.call(self)
21 self
22 end
23end
Kevin Clarkc3783f42008-06-18 01:18:14 +000024
25Spec::Runner.configure do |configuration|
26 configuration.before(:each) do
27 Thrift.type_checking = true
28 end
29end