Project

General

Profile

Actions

Bug #12672

closed

katello_url_helper ruby 2.2.2 compatible

Added by Chris Peters over 9 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When running the specs for models/provider_spec.rb with ruby 2.2.2 there is a test failure.

it "'https://'" do
@provider.repository_url = "https://"
@provider.wont_be :valid?
end

ruby 2.0 and 2.1 throw an exception when parsing the url "https://". This exception is caught and the method returns false. The intended behavior.

ruby 2.2.2 there is no exception thrown and thus the url is considered valid. This is not the intended behavior.


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #12564: URI does not downcase scheme in Rails 4DuplicateDaniel Lobato Garcia11/23/2015Actions
Actions

Also available in: Atom PDF