system-getifaddrs 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/system/getifaddrs.rb +1 -1
- data/lib/system/getifaddrs/version.rb +1 -1
- data/spec/spec_helper.rb +1 -6
- data/spec/system-ifaddrs_spec.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc351cf7715d70f35d5456adde7727b294e58b02916bb2155309a474cf989d43
|
4
|
+
data.tar.gz: 71aad189ce2b916f1bbaf60ff653639508a371aa703ec814bb42ed4afd6ced50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eedcb08b4d8adb8dcdc58bc8785e793a81b69c839bab5ad33a63a56aa4ed7c6513085d41ba8ec39f4999089b9b4c9726cd5d2ce4db03b4ed02637ce07caed0f
|
7
|
+
data.tar.gz: e763a857a95899b0549d6650f7ffdb1aaaf583b67a9772a392c4e6b78da073b223abd569bf59187cc6f2ce408d2b248023290b6c84d9b8ab4e434bd9d7964089
|
data/Gemfile.lock
CHANGED
data/lib/system/getifaddrs.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/system-ifaddrs_spec.rb
CHANGED
@@ -44,16 +44,16 @@ describe System do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
it 'should return a hash' do
|
47
|
-
@get_ifaddrs_interfaces.
|
47
|
+
expect(@get_ifaddrs_interfaces).to be_kind_of(Hash)
|
48
48
|
end
|
49
49
|
|
50
50
|
it 'should have same number of interfaces than system' do
|
51
|
-
@get_ifaddrs_interfaces.keys.size.
|
51
|
+
expect(@get_ifaddrs_interfaces.keys.size).to be >= @ifconfig_interfaces.keys.size
|
52
52
|
end
|
53
53
|
|
54
54
|
it 'should have same interfaces than system' do
|
55
55
|
@ifconfig_interfaces.keys.each do |k|
|
56
|
-
|
56
|
+
expect(@get_ifaddrs_interfaces).to include(k)
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
@@ -65,11 +65,11 @@ describe System do
|
|
65
65
|
end
|
66
66
|
|
67
67
|
it 'should return an array' do
|
68
|
-
@get_ifaddrs_interfaces.
|
68
|
+
expect(@get_ifaddrs_interfaces).to be_kind_of(Array)
|
69
69
|
end
|
70
70
|
|
71
71
|
it 'should have same number of interfaces than system' do
|
72
|
-
@get_ifaddrs_interfaces.size.
|
72
|
+
expect(@get_ifaddrs_interfaces.size).to be >= @ifconfig_interfaces.keys.size
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|