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 | d47cd66 | 2008-06-18 01:05:17 +0000 | [diff] [blame] | 6 | # turn on deprecation so we can test it |
| 7 | module Thrift |
| 8 | DEPRECATION = true |
| 9 | end |
| 10 | |
Kevin Clark | 3eca078 | 2008-06-18 00:54:53 +0000 | [diff] [blame] | 11 | require File.dirname(__FILE__) + '/../lib/thrift' |
Kevin Clark | 0ff9e8c | 2008-06-18 01:05:03 +0000 | [diff] [blame] | 12 | |
| 13 | class Object |
| 14 | # tee is a useful method, so let's let our tests have it |
| 15 | def tee(&block) |
| 16 | block.call(self) |
| 17 | self |
| 18 | end |
| 19 | end |