Skip to content

Commit

Permalink
Added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed May 9, 2018
1 parent c9674a1 commit e5d0051
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/root_part_test.rb
Expand Up @@ -234,4 +234,18 @@
end
end
end

describe "#MountFSTab" do
it "mounts /dev, /proc and /sys" do
allow(subject).to receive(:AddMountedPartition)

["/dev", "/proc", "/sys"].each do |d|
expect(subject).to receive(:MountPartition).with(d, anything, anything)
end

# call with empty list to only test the /dev, /proc and /sys mounting
fstab = []
subject.MountFSTab(fstab, "")
end
end
end

0 comments on commit e5d0051

Please sign in to comment.