Kevin Clark | 3eca078 | 2008-06-18 00:54:53 +0000 | [diff] [blame] | 1 | require 'rubygems' |
Kevin Clark | 356f861 | 2008-06-18 01:08:05 +0000 | [diff] [blame] | 2 | # require at least 1.1.4 to fix a bug with describing Modules |
| 3 | gem 'rspec', '>= 1.1.4' |
Kevin Clark | 3eca078 | 2008-06-18 00:54:53 +0000 | [diff] [blame] | 4 | require 'spec' |
| 5 | |
Kevin Clark | 3c59aff | 2008-06-18 01:17:37 +0000 | [diff] [blame^] | 6 | # pretend we already loaded fastthread, otherwise the nonblockingserver_spec |
| 7 | # will get screwed up |
| 8 | # $" << 'fastthread.bundle' |
| 9 | |
Kevin Clark | d47cd66 | 2008-06-18 01:05:17 +0000 | [diff] [blame] | 10 | # turn on deprecation so we can test it |
| 11 | module Thrift |
| 12 | DEPRECATION = true |
| 13 | end |
| 14 | |
Kevin Clark | 3eca078 | 2008-06-18 00:54:53 +0000 | [diff] [blame] | 15 | require File.dirname(__FILE__) + '/../lib/thrift' |
Kevin Clark | 0ff9e8c | 2008-06-18 01:05:03 +0000 | [diff] [blame] | 16 | |
| 17 | class 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 |
| 23 | end |