Skip to content

Commit 2fd0b81

Browse files
added test
1 parent 97f8129 commit 2fd0b81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rb/spec/integration/selenium/webdriver/manager_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ module WebDriver
257257
expect { driver.manage.delete_cookie('') }
258258
.to raise_error(ArgumentError, /Cookie name cannot be null or empty/)
259259
end
260+
261+
it 'throws an error when cookie name is an empty string' do
262+
expect { driver.manage.delete_cookie(nil) }
263+
.to raise_error(ArgumentError, /Cookie name cannot be null or empty/)
264+
end
260265
end
261266
end # Options
262267
end # WebDriver

0 commit comments

Comments
 (0)