removed conflict accidentally checked in

This commit is contained in:
Krzysztof Zylawy 2008-10-21 13:19:50 +01:00
parent 06997fabb8
commit 0e66ec82af

View File

@ -5,25 +5,6 @@ module Webrat
attr_reader :response attr_reader :response
def get(url, data, headers = nil) def get(url, data, headers = nil)
<<<<<<< HEAD:lib/webrat/merb.rb
@response = request(url, :params => data, :headers => headers, :method => "GET")
end
def post(url, data, headers = nil)
@response = request(url, :params => data, :headers => headers, :method => "POST")
end
def put(url, data, headers = nil)
@response = request(url, :params => data, :headers => headers, :method => "PUT")
end
def delete(url, data, headers = nil)
@response = request(url, :params => data, :headers => headers, :method => "DELETE")
end
def response_body
@response.body
=======
do_request(url, data, headers, "GET") do_request(url, data, headers, "GET")
end end
@ -41,22 +22,14 @@ module Webrat
def response_body def response_body
@response.body.to_s @response.body.to_s
>>>>>>> 86879c13c05ad0448456575f148495bf700e1d4c:lib/webrat/merb.rb
end end
def response_code
@response.status
end
<<<<<<< HEAD:lib/webrat/merb.rb
=======
protected protected
def do_request(url, data, headers, method) def do_request(url, data, headers, method)
@response = request(url, :params => data, :headers => headers, :method => method) @response = request(url, :params => data, :headers => headers, :method => method)
self.get(@response.headers['Location'], nil, @response.headers) if @response.status == 302 self.get(@response.headers['Location'], nil, @response.headers) if @response.status == 302
end end
>>>>>>> 86879c13c05ad0448456575f148495bf700e1d4c:lib/webrat/merb.rb
end end
end end
@ -65,27 +38,3 @@ class Merb::Test::RspecStory
@browser ||= Webrat::Session.new @browser ||= Webrat::Session.new
end end
end end
<<<<<<< HEAD:lib/webrat/merb.rb
#
# class Application < Merb::Controller
# def cookies=(newcookies)
# @_cookies = newcookies
# end
# end
#
#
# #Other utilities used by Webrat that are present in Rails but not Merb. We can require heavy dependencies
# #here because we're only loaded in Test mode.
# require 'strscan'
# require 'cgi'
require File.join(File.dirname(__FILE__), "merb", "param_parser.rb")
require File.join(File.dirname(__FILE__), "merb", "url_encoded_pair_parser.rb")
# require File.join(File.dirname(__FILE__), "merb", "indifferent_access.rb")
# require File.join(File.dirname(__FILE__), "merb", "support.rb")
#
#
#
=======
>>>>>>> 86879c13c05ad0448456575f148495bf700e1d4c:lib/webrat/merb.rb