Sha256: ea2625e6b28747d4648af90640284912fc2668eafec103a6b11654595c47b7df

Contents?: true

Size: 475 Bytes

Versions: 8

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class DomainsTest < Imgix::Test
  def test_invalid_domain_append_slash
    assert_raises(ArgumentError) {Imgix::Client.new(host: "assets.imgix.net/")}
  end

  def test_invalid_domain_prepend_scheme
    assert_raises(ArgumentError) {Imgix::Client.new(host: "https://assets.imgix.net")}
  end

  def test_invalid_domain_append_dash
    assert_raises(ArgumentError) {Imgix::Client.new(host: "assets.imgix.net-")}
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
imgix-3.4.0 test/units/domains_test.rb
imgix-3.3.1 test/units/domains_test.rb
imgix-3.3.0 test/units/domains_test.rb
imgix-3.2.1 test/units/domains_test.rb
imgix-3.2.0 test/units/domains_test.rb
imgix-3.1.1 test/units/domains_test.rb
imgix-3.1.0 test/units/domains_test.rb
imgix-3.0.0 test/units/domains_test.rb