features/support/env.rb in mirage-1.3.6 vs features/support/env.rb in mirage-2.0.0.alpha1

- old
+ new

@@ -46,23 +46,9 @@ module Web include Mirage::Web - def get(url) - browser = Mechanize.new - browser.keep_alive= false - browser.get(url) - end - - def hit_mirage(url, parameters={}) - start_time = Time.now - file = parameters.values.find { |value| value.is_a?(File) } - response = (file ? http_post(url, parameters) : http_get(url, parameters)) - @response_time = Time.now - start_time - response - end - def normalise text text.gsub(/[\n]/, ' ').gsub(/\s+/, ' ') end end \ No newline at end of file