Sha256: 1f1bdf4d9b959f41c742d2e33d5ceeec59707e3aad770067889a1ad2c8dd8749
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require 'test_helper' require 'crawler/formatting' class FormattingTest < MiniTest::Test include Crawler::Formatting def test_normalize_path path = '/' assert_equal '/', normalize_path(path) path = '/pricing' assert_equal '/pricing/', normalize_path(path) path = '/pricing/' assert_equal '/pricing/', normalize_path(path) end def test_construct_url url = 'https://www.digitalocean.com' uri = URI.parse(url) assert_equal url, construct_url(uri) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-crawler-0.0.1 | test/crawler/formatting_test.rb |