Skip to content

Commit

Permalink
fix typo in hash key
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Aug 18, 2016
1 parent 193f675 commit ceae597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/installation/clients/inst_extrasources.rb
Expand Up @@ -223,7 +223,7 @@ def GetURLsToRegister(registered)
end

urls_from_control_file = Builtins.filter(urls_from_control_file) do |one_url|
url = one_url["base_url"] || ""
url = one_url["baseurl"] || ""
normalized_url = url.end_with?("/") ? url.chop : url
if registered.include?(normalized_url)
Builtins.y2milestone(
Expand Down
4 changes: 2 additions & 2 deletions test/inst_extrasources_test.rb
Expand Up @@ -46,10 +46,10 @@
"without already registered entries passed as argument" do
already_registered = "http://test.com"
allow(Yast::ProductFeatures).to receive(:GetFeature).with("software", "extra_urls")
.and_return([{"base_url" => "http://test.com/"}, {"base_url" => "http://test2.com"}])
.and_return([{"baseurl" => "http://test.com/"}, {"baseurl" => "http://test2.com"}])

expect(subject.GetURLsToRegister(already_registered)).to eq(
[{"base_url" => "http://test2.com"}]
[{"baseurl" => "http://test2.com"}]
)
end
end
Expand Down

0 comments on commit ceae597

Please sign in to comment.