From e6d73b5fc1b88aad90c9868f6c337d1346afbb7d Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Mon, 12 Mar 2018 16:04:13 +0100 Subject: [PATCH] add test --- test/stage1_test.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/stage1_test.rb b/test/stage1_test.rb index 4d2f8a40a..79a2d47be 100644 --- a/test/stage1_test.rb +++ b/test/stage1_test.rb @@ -196,4 +196,17 @@ end end end + + describe "#merge" do + it "keeps logical volume if specified in other" do + devicegraph_stub("xfs.yaml") + + other = described_class.new + other.add_device("/dev/sda5") + + subject.merge(other) + + expect(subject.devices).to eq ["/dev/sda5"] + end + end end