From a940e3232b2c828a6c7b0ef192e99de4e77303ea Mon Sep 17 00:00:00 2001 From: Krzysztof Zylawy Date: Tue, 21 Oct 2008 13:24:35 +0100 Subject: [PATCH] more fixing to broken file --- lib/webrat/merb.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/webrat/merb.rb b/lib/webrat/merb.rb index ac65ee9..1684545 100644 --- a/lib/webrat/merb.rb +++ b/lib/webrat/merb.rb @@ -23,7 +23,11 @@ module Webrat def response_body @response.body.to_s end - + + def response_code + @response.status + end + protected def do_request(url, data, headers, method) @response = request(url, :params => data, :headers => headers, :method => method) @@ -38,3 +42,4 @@ class Merb::Test::RspecStory @browser ||= Webrat::Session.new end end +