Sha256: db7f2ca7fefafeffa3e367880467916ca01b9d7c30d9ed6d6c76289450118376

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

require 'test_helper'

class ValidationsTest < MiniTest::Test

  def test_protocol_validation
    error = assert_raises(Crawler::InvalidProtocolError) { Crawler.new('digitalocean.com') }
    assert_equal 'Please specify either http or https', error.message
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-crawler-0.0.1 test/crawler/validations_test.rb