Skip to content
This repository
Browse code

FIX: Forgot to move result_info into Irb only area

  • Loading branch information...
commit 3d25a35eba6401ecf120fe091acc68571ad82b41 1 parent 7ada49e
authored
7  lib/sinatra/irb.rb
@@ -23,6 +23,13 @@ def show!(editor = nil)
23 23
           end
24 24
         end
25 25
         alias :mate :show!
  26
+        
  27
+        def result_info
  28
+          info = <<-end_info
  29
+          # Status: #{status}
  30
+          # Headers: #{headers.inspect}
  31
+          end_info
  32
+        end
26 33
       end
27 34
       
28 35
       ARGV.clear # Avoid passing args to IRB 
9  lib/sinatra/test_methods.rb
... ...
@@ -1,7 +1,7 @@
1 1
 require 'uri'
2 2
 
3 3
 module Sinatra
4  
-  
  4
+      
5 5
   module TestMethods
6 6
 
7 7
     %w(get post put delete).each do |verb|
@@ -14,13 +14,6 @@ def #{verb}_it(path, params = {})
14 14
       end_eval
15 15
     end
16 16
         
17  
-    def result_info
18  
-      info = <<-end_info
19  
-      # Status: #{status}
20  
-      # Headers: #{headers.inspect}
21  
-      end_info
22  
-    end
23  
-
24 17
     def response
25 18
       @response || Rack::MockResponse.new(404, {}, '')
26 19
     end

0 notes on commit 3d25a35

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