unixoid-challenge 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/challenge_spec.rb +3 -16
- data/lib/unixoid/challenge.rb +1 -1
- data/lib/unixoid/runner.rb +1 -1
- data/lib/unixoid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5038cc84438774fae53de4387e330a9e64d270ce
|
4
|
+
data.tar.gz: fa0119d7de7fdc648d815ae4257ad3dcdf06044e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc96abda146b37a2f8531ca7dea4079e7020797856f845882eed274f66c5a1d0e9422cbb82119c4b3ddd1da784a82ebbb2e9b62849c68e21cb13fdce8ee6ea55
|
7
|
+
data.tar.gz: ea38f444c2232ddd1acbdc50e0c319d9c439e1e64b0f1fa3b4ab2d7c08d1b7512b49e39aa160f3fc8177221e9503b1baf7f20ccfbf36a102e9a39ad68692199f
|
data/challenge_spec.rb
CHANGED
@@ -32,12 +32,8 @@ describe "Unixoid test" do
|
|
32
32
|
expect(File.read("#{Dir.home}/.bash_profile")).to match(/export\s+TESTING_MAKERS=working/)
|
33
33
|
end
|
34
34
|
|
35
|
-
it "
|
35
|
+
it "8. should have t-vars.count in my/public/files with an overall count" do
|
36
36
|
expect(File.exist?('my/public/files/t-vars.count')).to be true
|
37
|
-
lines = File.readlines('my/public/files/t-vars.count')
|
38
|
-
end
|
39
|
-
|
40
|
-
it "8b. should have the count of env vars in my/public/files/t-vars.count" do
|
41
37
|
expect(File.read('my/public/files/t-vars.count')).to match(/^Overall count:\s+\d+\s*$/i)
|
42
38
|
end
|
43
39
|
|
@@ -60,19 +56,11 @@ describe "Unixoid test" do
|
|
60
56
|
expect(t_vars_permissions & 0666).to eq(0666)
|
61
57
|
end
|
62
58
|
|
63
|
-
it "
|
64
|
-
expect(File.exist?('my/public/files/text-files-count.txt')).to be true
|
65
|
-
end
|
66
|
-
|
67
|
-
it "12b. should have the count of text files in my/public/files/text-files-count.txt" do
|
59
|
+
it "12. should have the count of text files in my/public/files/text-files-count.txt" do
|
68
60
|
expect(File.read('my/public/files/text-files-count.txt')).to match(/^\s*\d{2,6}\s*$/)
|
69
61
|
end
|
70
62
|
|
71
|
-
it "
|
72
|
-
expect(File.exist?('my/private/files/first-three-env.txt')).to be true
|
73
|
-
end
|
74
|
-
|
75
|
-
it "13b. should have the the first three env vars in my/private/files/first-three-env.txt" do
|
63
|
+
it "13. should have the the first three env vars in my/private/files/first-three-env.txt" do
|
76
64
|
lines = File.readlines('my/private/files/first-three-env.txt')
|
77
65
|
expect(lines.sort).to eq lines
|
78
66
|
expect(lines.count).to eq(3)
|
@@ -81,5 +69,4 @@ describe "Unixoid test" do
|
|
81
69
|
it "14. should have commands.txt in my/private/files" do
|
82
70
|
expect(File.exist?('my/private/files/commands.txt')).to be true
|
83
71
|
end
|
84
|
-
|
85
72
|
end
|
data/lib/unixoid/challenge.rb
CHANGED
@@ -8,7 +8,7 @@ module Unixoid
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def run_specs
|
11
|
-
results = Runner.run("rspec -fp #{spec_file}", outcodes: [0,1]).lines.first
|
11
|
+
results = Runner.run("rspec --order defined -fp #{spec_file}", outcodes: [0,1]).lines.first
|
12
12
|
File.write("#{RESULTS_FILE}", results)
|
13
13
|
results
|
14
14
|
end
|
data/lib/unixoid/runner.rb
CHANGED
data/lib/unixoid/version.rb
CHANGED