Skip to content

Commit 03906ed

Browse files
committed
Update tests, cast options to hash for testing
1 parent 12e34ec commit 03906ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/lib/driver_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
described_class.new(nil)
88
end
99

10-
expect(driver.browser.options).to include(save_path: "/tmp/capybara-save-path")
10+
expect(driver.browser.options.to_h).to include(save_path: "/tmp/capybara-save-path")
1111
end
1212

1313
it "allows a custom path to be specified" do
@@ -17,7 +17,7 @@
1717
described_class.new(nil, { save_path: custom_path })
1818
end
1919

20-
expect(driver.browser.options).to include(save_path: custom_path)
20+
expect(driver.browser.options.to_h).to include(save_path: custom_path)
2121
end
2222
end
2323

0 commit comments

Comments
 (0)