test/paths/http_test.rb in iostreams-1.1.0 vs test/paths/http_test.rb in iostreams-1.1.1
- old
+ new
@@ -1,6 +1,6 @@
-require_relative '../test_helper'
+require_relative "../test_helper"
module Paths
class HTTPTest < Minitest::Test
describe IOStreams::Paths::HTTP do
let :url do
@@ -9,21 +9,21 @@
let :ssl_url do
"https://example.com/index.html?count=10"
end
- describe '.open' do
- it 'reads http' do
+ describe ".open" do
+ it "reads http" do
result = IOStreams::Paths::HTTP.new(url).read
assert_includes result, "<html>"
end
- it 'reads https' do
+ it "reads https" do
result = IOStreams::Paths::HTTP.new(ssl_url).read
assert_includes result, "<html>"
end
- it 'does not support streams' do
+ it "does not support streams" do
assert_raises URI::InvalidURIError do
io = StringIO.new
IOStreams::Paths::HTTP.new(io)
end
end