Skip to content

Commit

Permalink
add forgotten one
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 16, 2015
1 parent f09eaff commit da0ba8c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/device_map_test.rb
Expand Up @@ -60,16 +60,7 @@

it "limits number of disks in device map to 8" do
# simple mock getting disks from partition as it need initialized libstorage
allow(Yast::Storage).to receive(:GetDiskPartition) do |partition|
if partition == "/dev/system/root"
disk = "/dev/system"
number = "system"
else
number = partition[/(\d+)$/, 1]
disk = partition[0..-(number.size + 1)]
end
{ "disk" => disk, "nr" => number }
end
mock_disk_partition

target_map_stub("many_disks.rb")

Expand Down

0 comments on commit da0ba8c

Please sign in to comment.