Extending ActionController::IntegrationTest instead of ActionController::Integration::Session fixes error with Webrat's select method

This commit is contained in:
Bryan Helmkamp 2008-11-26 14:26:10 -05:00
parent 01fcd0dea1
commit 4f530cfa29
3 changed files with 7 additions and 5 deletions

View File

@ -32,8 +32,6 @@ module Webrat
:chooses, :choose,
:selects, :select,
:attaches_file, :attach_file,
:cookies,
:response,
:current_page,
:current_url,
:clicks_link, :click_link,
@ -47,7 +45,8 @@ module Webrat
:selects_date, :selects_time, :selects_datetime,
:select_date, :select_time, :select_datetime,
:wait_for_page_to_load,
:field_by_xpath
:field_by_xpath,
:field_with_id
end

View File

@ -215,6 +215,7 @@ module Webrat
def_delegators :current_scope, :should_not_see
def_delegators :current_scope, :field_labeled
def_delegators :current_scope, :field_by_xpath
def_delegators :current_scope, :field_with_id
private
# accessor for testing

View File

@ -76,10 +76,12 @@ module ActionController #:nodoc:
require "webrat/rails/redirect_actions"
include Webrat::RedirectActions
end
include Webrat::Methods
end
end
class IntegrationTest
include Webrat::Methods
end
end
Webrat.configuration.mode = :rails