1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Bump webrat to 0.7.1

This commit is contained in:
Carlos Antonio da Silva 2010-09-26 14:45:00 -03:00
parent a7cc3388b4
commit f60123ce01
3 changed files with 7 additions and 22 deletions

View file

@ -19,7 +19,7 @@ platforms :ruby do
end
gem "warden", "1.0.0"
gem "webrat", "0.7.0"
gem "webrat", "0.7.1"
gem "mocha", :require => false
gem "bcrypt-ruby", :require => "bcrypt"
gem "oauth2"

View file

@ -100,7 +100,7 @@ GEM
tzinfo (0.3.23)
warden (1.0.0)
rack (>= 1.0.0)
webrat (0.7.0)
webrat (0.7.1)
nokogiri (>= 1.2.0)
rack (>= 1.0)
rack-test (>= 0.5.3)
@ -122,4 +122,4 @@ DEPENDENCIES
ruby-debug (>= 0.10.3)
sqlite3-ruby
warden (= 1.0.0)
webrat (= 0.7.0)
webrat (= 0.7.1)

View file

@ -1,9 +1,9 @@
require 'webrat/core/elements/field'
require 'webrat/core/elements/form'
require 'action_dispatch/testing/integration'
module Webrat
Field.class_eval do
def parse_rails_request_params(params)
Form.class_eval do
def self.parse_rails_request_params(params)
Rack::Utils.parse_nested_query(params)
end
end
@ -13,20 +13,5 @@ module ActionDispatch #:nodoc:
IntegrationTest.class_eval do
include Webrat::Methods
include Webrat::Matchers
# The Rails version of within supports passing in a model and Webrat
# will apply a scope based on Rails' dom_id for that model.
#
# Example:
# within User.last do
# click_link "Delete"
# end
def within(selector_or_object, &block)
if selector_or_object.is_a?(String)
super
else
super('#' + RecordIdentifier.dom_id(selector_or_object), &block)
end
end
end
end
end