# -*- encoding : utf-8 -*- # # Ruby 1.9 changes the way to_a is implemented - now throws an error if recieving object does not catch :to_ary message # Ruby 1.8 does not. As this is fixed in RSpec2 we cannot upgrade to RSpec to as it does not support Rails 2.3 # So we monkey patch RSpec 1.3 # module Spec module Mocks class Mock def to_ary nil end end end end