Extending ActionController::IntegrationTest instead of ActionController::Integration::Session fixes error with Webrat's select method
This commit is contained in:
parent
01fcd0dea1
commit
4f530cfa29
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user