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

View File

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

View File

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