mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Add unit test
This commit is contained in:
parent
44374a7517
commit
e7f2eb26e1
1 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,15 @@ module TestHTTPCookieJar
|
|||
}
|
||||
end
|
||||
|
||||
def test_nonexistent_store_in_config
|
||||
assert_raise_with_message(
|
||||
ArgumentError,
|
||||
/cookie store unavailable: :nonexistent, error: cannot load .*nonexistent_store/
|
||||
) {
|
||||
HTTP::CookieJar.new(store: :nonexistent)
|
||||
}
|
||||
end
|
||||
|
||||
def test_erroneous_store
|
||||
Dir.mktmpdir { |dir|
|
||||
Dir.mkdir(File.join(dir, 'http'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue