mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Fix $LOADED_FEATURES comparison with Ruby 1.8.
This commit is contained in:
parent
bafb83fc06
commit
4ef2147138
1 changed files with 10 additions and 2 deletions
|
|
@ -20,7 +20,11 @@ module TestHTTPCookieJar
|
|||
assert_raises(NameError) {
|
||||
HTTP::CookieJar::ErroneousStore
|
||||
}
|
||||
if RUBY_VERSION >= "1.9"
|
||||
assert_includes $LOADED_FEATURES, rb
|
||||
else
|
||||
assert_includes $LOADED_FEATURES, rb[(dir.size + 1)..-1]
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -41,7 +45,11 @@ module TestHTTPCookieJar
|
|||
assert_raises(NameError) {
|
||||
HTTP::CookieJar::ErroneousSaver
|
||||
}
|
||||
if RUBY_VERSION >= "1.9"
|
||||
assert_includes $LOADED_FEATURES, rb
|
||||
else
|
||||
assert_includes $LOADED_FEATURES, rb[(dir.size + 1)..-1]
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue