We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e7b8e commit 2d6374cCopy full SHA for 2d6374c
rb/lib/selenium/webdriver/common/profile_helper.rb
@@ -30,7 +30,7 @@ def self.included(base)
30
end
31
32
def as_json(*)
33
- Zipper.zip(layout_on_disk)
+ {zip: Zipper.zip(layout_on_disk)}
34
35
36
def to_json(*)
@@ -61,7 +61,7 @@ def verify_model(model)
61
62
module ClassMethods
63
def from_json(json)
64
- data = JSON.parse(json)
+ data = JSON.parse(json).fetch('zip')
65
66
# can't use Tempfile here since it doesn't support File::BINARY mode on 1.8
67
# can't use Dir.mktmpdir(&blk) because of http://jira.codehaus.org/browse/JRUBY-4082
0 commit comments