Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d71de8
commit 85fddad
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env rspec | ||
|
||
require_relative "../test_helper" | ||
require "yast" | ||
|
||
describe ".proc.meminfo" do | ||
around :each do |example| | ||
root = File.join(File.dirname(__FILE__), "test_root") | ||
change_scr_root(root, &example) | ||
end | ||
|
||
describe ".Read" do | ||
let(:content) { Yast::SCR.Read(path(".etc.fstab")) } | ||
|
||
it "reads content of /etc/fstab and returns array" do | ||
expect(content).to be_a(Array) | ||
end | ||
|
||
it "returned array contains nfs entries" do | ||
expect(content).to satisfy { |r| r.find { |e| e["file"] == "/home/kv2" } } | ||
expect(content).to satisfy { |r| r.find { |e| e["file"] == "/media/new" } } | ||
expect(content).to satisfy { |r| r.find { |e| e["file"] == "/media/new2" } } | ||
end | ||
|
||
it "returned array contains tmpfs entry" do | ||
expect(content).to satisfy { |r| r.find { |e| e["file"] == "/tmp" } } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
UUID=b66c1028-cd4a-4c08-b92d-fc4b9840845d / ext4 noatime,data=writeback,acl,user_xattr 1 1 | ||
UUID=d2811ace-66e0-4ef2-9b68-9b2758359391 /home ext4 noatime,data=writeback,acl 1 2 | ||
192.168.1.2:/home/kv /home/kv2 nfs defaults 0 0 | ||
192.168.1.2:/media/new2 /media/new2 nfs defaults 0 0 | ||
192.168.1.2:/media/new /media/new nfs defaults 0 0 | ||
tmpfs /tmp tmpfs defaults,size=25% 0 0 |