Permalink
Browse files

FIX: Forgot to move result_info into Irb only area

  • Loading branch information...
1 parent 7ada49e commit 3d25a35eba6401ecf120fe091acc68571ad82b41 Blake Mizerany committed Oct 4, 2007
Showing with 8 additions and 8 deletions.
  1. +7 −0 lib/sinatra/irb.rb
  2. +1 −8 lib/sinatra/test_methods.rb
View
@@ -23,6 +23,13 @@ def show!(editor = nil)
end
end
alias :mate :show!
+
+ def result_info
+ info = <<-end_info
+ # Status: #{status}
+ # Headers: #{headers.inspect}
+ end_info
+ end
end
ARGV.clear # Avoid passing args to IRB
@@ -1,7 +1,7 @@
require 'uri'
module Sinatra
-
+
module TestMethods
%w(get post put delete).each do |verb|
@@ -14,13 +14,6 @@ def #{verb}_it(path, params = {})
end_eval
end
- def result_info
- info = <<-end_info
- # Status: #{status}
- # Headers: #{headers.inspect}
- end_info
- end
-
def response
@response || Rack::MockResponse.new(404, {}, '')
end

0 comments on commit 3d25a35

Please sign in to comment.