blob: 4f951f6389515ff433d92cdf51a54f4a22fe42e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module CGISpecs
def self.cgi_new(html = "html4")
old_request_method = ENV['REQUEST_METHOD']
ENV['REQUEST_METHOD'] = "GET"
begin
CGI.new(tag_maker: html)
ensure
ENV['REQUEST_METHOD'] = old_request_method
end
end
def self.split(string)
string.split("<").reject { |x| x.empty? }.map { |x| "<#{x}" }
end
end
|