blob: 9498d2a9f8615a0d35cbad67d2b84b1f1a79e357 [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 Clarkc83d4452008-06-18 01:18:21 +000016$:.unshift File.dirname(__FILE__) + "/gen-rb"
Kevin Clark0ff9e8c2008-06-18 01:05:03 +000017
18class Object
19 # tee is a useful method, so let's let our tests have it
20 def tee(&block)
21 block.call(self)
22 self
23 end
24end
Kevin Clarkc3783f42008-06-18 01:18:14 +000025
26Spec::Runner.configure do |configuration|
27 configuration.before(:each) do
28 Thrift.type_checking = true
29 end
30end