Skip to content

Commit

Permalink
Fix declaration of Enumerator for 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gierth authored and Lars Gierth committed Mar 31, 2012
1 parent dab9742 commit d3328c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/spec_lock.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def lock_app(app, lock = Lock.new)
end end


describe Rack::Lock do describe Rack::Lock do
Enumerator = ::Enumerable::Enumerator unless defined?(Enumerator)

extend LockHelpers extend LockHelpers


describe 'Proxy' do describe 'Proxy' do
Expand Down
2 changes: 2 additions & 0 deletions test/spec_nulllogger.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
require 'rack/nulllogger' require 'rack/nulllogger'


describe Rack::NullLogger do describe Rack::NullLogger do
Enumerator = ::Enumerable::Enumerator unless defined?(Enumerator)

should "act as a noop logger" do should "act as a noop logger" do
app = lambda { |env| app = lambda { |env|
env['rack.logger'].warn "b00m" env['rack.logger'].warn "b00m"
Expand Down

0 comments on commit d3328c3

Please sign in to comment.