added few small fixes to webrat
This commit is contained in:
parent
4ed917da61
commit
ddd0dd70c3
@ -105,7 +105,7 @@ module Webrat
|
||||
def merge_hash_values(a, b) # :nodoc:
|
||||
a.keys.each do |k|
|
||||
if b.has_key?(k)
|
||||
case [a[k], b[k]].map(&:class)
|
||||
case [a[k], b[k]].map{|value| value.class}
|
||||
when [Hash, Hash]
|
||||
a[k] = merge_hash_values(a[k], b[k])
|
||||
b.delete(k)
|
||||
|
@ -1,3 +1,7 @@
|
||||
Dir[File.join(File.dirname(__FILE__), "merb", "*.rb")].sort.each do |file|
|
||||
require File.expand_path(file)
|
||||
end
|
||||
|
||||
module Webrat
|
||||
class Session
|
||||
include Merb::Test::RequestHelper
|
||||
|
Loading…
Reference in New Issue
Block a user