blob: 3fbd673f1c4cdef07477685b3f4501e29deb5925 [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 Clarkc8190172008-07-28 22:16:34 +00006$:.unshift File.join(File.dirname(__FILE__), *%w[.. ext])
7
Kevin Clark3c59aff2008-06-18 01:17:37 +00008# pretend we already loaded fastthread, otherwise the nonblockingserver_spec
9# will get screwed up
10# $" << 'fastthread.bundle'
11
Kevin Clark3eca0782008-06-18 00:54:53 +000012require File.dirname(__FILE__) + '/../lib/thrift'
Kevin Clark0ff9e8c2008-06-18 01:05:03 +000013
14class Object
15 # tee is a useful method, so let's let our tests have it
16 def tee(&block)
17 block.call(self)
18 self
19 end
20end
Kevin Clarkc3783f42008-06-18 01:18:14 +000021
22Spec::Runner.configure do |configuration|
23 configuration.before(:each) do
24 Thrift.type_checking = true
25 end
26end
Bryan Duxburyc0166282009-02-02 00:48:17 +000027
Bryan Duxburyd815c212009-03-19 18:57:43 +000028require File.dirname(__FILE__) + "/../debug_proto_test/gen-rb/Srv"
29
30module Fixtures
31 COMPACT_PROTOCOL_TEST_STRUCT = CompactProtoTestStruct.new(:a_binary => [0,1,2,3,4,5,6,7,8].pack('c*'))
32end