Permalink
Browse files

Fix declaration of Enumerator for 1.8.7

  • Loading branch information...
lgierth committed Dec 28, 2011
1 parent dab9742 commit d3328c3f0955ca0648d0076bfdace8bad50765b2
Showing with 4 additions and 0 deletions.
  1. +2 −0 test/spec_lock.rb
  2. +2 −0 test/spec_nulllogger.rb
View
@@ -36,6 +36,8 @@ def lock_app(app, lock = Lock.new)
end
describe Rack::Lock do
+ Enumerator = ::Enumerable::Enumerator unless defined?(Enumerator)
+
extend LockHelpers
describe 'Proxy' do
View
@@ -4,6 +4,8 @@
require 'rack/nulllogger'
describe Rack::NullLogger do
+ Enumerator = ::Enumerable::Enumerator unless defined?(Enumerator)
+
should "act as a noop logger" do
app = lambda { |env|
env['rack.logger'].warn "b00m"

0 comments on commit d3328c3

Please sign in to comment.