Sha256: 424d5ef96a25f6c14384e335cc75bd32061a57fd69951339d2436f4c9cb1e032
Contents?: true
Size: 792 Bytes
Versions: 3
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class ParamHelpers < Imgix::Test def test_param_helpers_emits_dep_warning host_warn = "Warning: The identifier `host' has been deprecated and " \ "will\nappear as `domain' in the next major version, e.g. " \ "`@host'\nbecomes `@domain', `options[:host]' becomes " \ "`options[:domain]'.\n" assert_output(nil, host_warn) { client = Imgix::Client.new(host: 'test.imgix.net') rect_warn = "Warning: `ParamHelpers.rect` has been deprecated and " \ "will be removed in the next major version.\n" assert_output(nil, rect_warn){ client.path('/images/demo.png').rect(x: 0, y: 50, width: 200, height: 300) } } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
imgix-3.4.0 | test/units/param_helpers_test.rb |
imgix-3.3.1 | test/units/param_helpers_test.rb |
imgix-3.3.0 | test/units/param_helpers_test.rb |