Skip to content

Commit

Permalink
- added checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Feb 19, 2015
1 parent 96d8bd9 commit 3e81651
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/storage_snapper_configure_snapper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,34 @@
end


it "does not configure snapper" do

data = {
"device" => "/dev/sda1",
"mount" => "/",
"used_fs" => :xfs,
"userdata" => { "/" => "snapshots" }
}

Yast::Storage.stub(:GetEntryForMountpoint).with("/").once.and_return(data)

expect(Yast::StorageSnapper.ConfigureSnapper?).to eq false

end


it "does not configure snapper" do

data = {
"device" => "/dev/sda1",
"mount" => "/",
"used_fs" => :xfs
}

Yast::Storage.stub(:GetEntryForMountpoint).with("/").once.and_return(data)

expect(Yast::StorageSnapper.ConfigureSnapper?).to eq false

end

end

0 comments on commit 3e81651

Please sign in to comment.