From 3d25a35eba6401ecf120fe091acc68571ad82b41 Mon Sep 17 00:00:00 2001 From: Blake Mizerany Date: Thu, 4 Oct 2007 12:41:48 -0700 Subject: [PATCH] FIX: Forgot to move result_info into Irb only area --- lib/sinatra/irb.rb | 7 +++++++ lib/sinatra/test_methods.rb | 9 +-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/sinatra/irb.rb b/lib/sinatra/irb.rb index 3f4c1ccc74..1a229412d6 100644 --- a/lib/sinatra/irb.rb +++ b/lib/sinatra/irb.rb @@ -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 diff --git a/lib/sinatra/test_methods.rb b/lib/sinatra/test_methods.rb index f782f721bc..90207533e1 100644 --- a/lib/sinatra/test_methods.rb +++ b/lib/sinatra/test_methods.rb @@ -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