Skip to content

Commit

Permalink
FIX: Forgot to move result_info into Irb only area
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mizerany committed Oct 4, 2007
1 parent 7ada49e commit 3d25a35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 7 additions & 0 deletions lib/sinatra/irb.rb
Expand Up @@ -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
Expand Down
9 changes: 1 addition & 8 deletions lib/sinatra/test_methods.rb
@@ -1,7 +1,7 @@
require 'uri'

module Sinatra

module TestMethods

%w(get post put delete).each do |verb|
Expand All @@ -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
Expand Down

0 comments on commit 3d25a35

Please sign in to comment.