Sha256: ddc39917635e8c749daa4fa5c9ca3befdb21ba6bd380bc88653006349b666ee9

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

# -*- 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
itrigga-ruby19_hacks-0.1.4 lib/itrigga/ruby19_hacks/rspec.rb
itrigga-ruby19_hacks-0.1.3 lib/itrigga/ruby19_hacks/rspec.rb
itrigga-ruby19_hacks-0.1.2 lib/itrigga/ruby19_hacks/rspec.rb
itrigga-ruby19_hacks-0.1.1 lib/itrigga/ruby19_hacks/rspec.rb