Skip to content
Browse files

Made app a protected abstract method

  • Loading branch information...
1 parent 1fa38d4 commit 8a4a29d5bd5f93a93464ce7a25579d8d00b17cbd Luca Guidi committed Mar 30, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/rack/unit/test_case.rb
View
6 lib/rack/unit/test_case.rb
@@ -3,7 +3,7 @@
module Rack
module Unit
class TestCase < ::Test::Unit::TestCase
- attr_reader :app, :response
+ attr_reader :response
attr_accessor :request
# Performs a GET request with the given path and headers.
@@ -64,6 +64,10 @@ def default_test #:nodoc:
end
protected
+ def app
+ raise "Should be implemented by subclasses!"
+ end
+
def process(method, path, headers = {}) #:nodoc:
env.merge!({ "REQUEST_METHOD" => method.to_s.upcase, "PATH_INFO" => path })
self.request = Rack::Request.new(env)

0 comments on commit 8a4a29d

Please sign in to comment.
Something went wrong with that request. Please try again.