Skip to content

Commit

Permalink
Updates from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Apr 2, 2020
1 parent c883a35 commit 83994b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/y2network/autoinst/s390_devices_reader.rb
Expand Up @@ -86,6 +86,7 @@ def load_lcs(config, device_section)

# Returns the list of channel IDs from a string
#
# @param ids [String] String representing the channel IDs
# @return [Array<String>]
def chanids_from(ids)
ids.to_s.split(CHANIDS_SEPARATOR)
Expand Down
1 change: 1 addition & 0 deletions src/lib/y2network/autoinst_profile/s390_device_section.rb
Expand Up @@ -117,6 +117,7 @@ def init_from_hashes(hash)
#
# It replaces spaces with colons.
#
# @param ids [String] String representing the channel IDs
# @return [String]
def normalized_chanids(ids)
ids.gsub(/\ +/, ":")
Expand Down
4 changes: 2 additions & 2 deletions test/y2network/autoinst_profile/s390_device_section_test.rb
Expand Up @@ -59,7 +59,7 @@
}
end

it "loads properly boot protocol" do
it "loads properly type, chanids and boot protocol" do
section = described_class.new_from_hashes(hash)
expect(section.type).to eq "ctc"
expect(section.chanids).to eq("0.0.0800:0.0.0801")
Expand All @@ -75,7 +75,7 @@
}
end

it "loads properly boot protocol" do
it "loads properly the chanids" do
section = described_class.new_from_hashes(hash)
expect(section.chanids).to eq("0.0.0800:0.0.0801")
end
Expand Down

0 comments on commit 83994b9

Please sign in to comment.