@@ -59,7 +59,7 @@ def fixture_data(file)
59
59
describe 'the onboot property' do
60
60
let ( :data ) { described_class . parse_file ( 'eth0' , fixture_data ( 'eth0-dhcp' ) ) [ 0 ] }
61
61
62
- it { expect ( data [ :onboot ] ) . to eq ( 'yes' ) }
62
+ it { expect ( data [ :onboot ] ) . to eq ( true ) }
63
63
end
64
64
65
65
describe 'the method property' do
@@ -80,13 +80,13 @@ def fixture_data(file)
80
80
describe 'when true' do
81
81
let ( :data ) { described_class . parse_file ( 'eth0' , fixture_data ( 'eth0-hotplug' ) ) [ 0 ] }
82
82
83
- it { expect ( data [ :hotplug ] ) . to eq ( 'yes' ) }
83
+ it { expect ( data [ :hotplug ] ) . to eq ( true ) }
84
84
end
85
85
86
86
describe 'when false' do
87
87
let ( :data ) { described_class . parse_file ( 'eth0' , fixture_data ( 'eth0-nohotplug' ) ) [ 0 ] }
88
88
89
- it { expect ( data [ :hotplug ] ) . to eq ( 'no' ) }
89
+ it { expect ( data [ :hotplug ] ) . to eq ( false ) }
90
90
end
91
91
end
92
92
@@ -120,7 +120,7 @@ def fixture_data(file)
120
120
describe 'bond0' do
121
121
subject { described_class . instances . find { |i | i . name == 'bond0' } }
122
122
123
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
123
+ its ( :onboot ) { is_expected . to eq ( true ) }
124
124
its ( :mtu ) { is_expected . to eq ( '1500' ) }
125
125
126
126
its ( :options ) do
@@ -133,7 +133,7 @@ def fixture_data(file)
133
133
describe 'bond1' do
134
134
subject { described_class . instances . find { |i | i . name == 'bond1' } }
135
135
136
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
136
+ its ( :onboot ) { is_expected . to eq ( true ) }
137
137
its ( :ipaddress ) { is_expected . to eq ( '172.20.1.9' ) }
138
138
its ( :netmask ) { is_expected . to eq ( '255.255.255.0' ) }
139
139
its ( :mtu ) { is_expected . to eq ( '1500' ) }
@@ -148,7 +148,7 @@ def fixture_data(file)
148
148
describe 'eth0' do
149
149
subject { described_class . instances . find { |i | i . name == 'eth0' } }
150
150
151
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
151
+ its ( :onboot ) { is_expected . to eq ( true ) }
152
152
its ( :mtu ) { is_expected . to eq ( '1500' ) }
153
153
its ( :mode ) { is_expected . to eq ( :raw ) }
154
154
@@ -164,7 +164,7 @@ def fixture_data(file)
164
164
describe 'eth1' do
165
165
subject { described_class . instances . find { |i | i . name == 'eth1' } }
166
166
167
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
167
+ its ( :onboot ) { is_expected . to eq ( true ) }
168
168
its ( :mtu ) { is_expected . to eq ( '1500' ) }
169
169
its ( :mode ) { is_expected . to eq ( :raw ) }
170
170
@@ -180,7 +180,7 @@ def fixture_data(file)
180
180
describe 'eth2' do
181
181
subject { described_class . instances . find { |i | i . name == 'eth2' } }
182
182
183
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
183
+ its ( :onboot ) { is_expected . to eq ( true ) }
184
184
its ( :mtu ) { is_expected . to eq ( '1500' ) }
185
185
its ( :mode ) { is_expected . to eq ( :raw ) }
186
186
@@ -196,7 +196,7 @@ def fixture_data(file)
196
196
describe 'eth3' do
197
197
subject { described_class . instances . find { |i | i . name == 'eth3' } }
198
198
199
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
199
+ its ( :onboot ) { is_expected . to eq ( true ) }
200
200
its ( :mtu ) { is_expected . to eq ( '1500' ) }
201
201
its ( :mode ) { is_expected . to eq ( :raw ) }
202
202
@@ -316,7 +316,7 @@ def fixture_data(file)
316
316
describe 'eth0.0' do
317
317
subject { described_class . instances . find { |i | i . name == 'eth0.0' } }
318
318
319
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
319
+ its ( :onboot ) { is_expected . to eq ( true ) }
320
320
its ( :method ) { is_expected . to eq ( 'static' ) }
321
321
its ( :mtu ) { is_expected . to eq ( '9000' ) }
322
322
its ( :mode ) { is_expected . to eq ( :vlan ) }
@@ -334,7 +334,7 @@ def fixture_data(file)
334
334
describe 'eth0.1' do
335
335
subject { described_class . instances . find { |i | i . name == 'eth0.1' } }
336
336
337
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
337
+ its ( :onboot ) { is_expected . to eq ( true ) }
338
338
its ( :method ) { is_expected . to eq ( 'static' ) }
339
339
its ( :mtu ) { is_expected . to eq ( '9000' ) }
340
340
its ( :mode ) { is_expected . to eq ( :vlan ) }
@@ -352,7 +352,7 @@ def fixture_data(file)
352
352
describe 'eth0.4095' do
353
353
subject { described_class . instances . find { |i | i . name == 'eth0.4095' } }
354
354
355
- its ( :onboot ) { is_expected . to eq ( 'yes' ) }
355
+ its ( :onboot ) { is_expected . to eq ( true ) }
356
356
its ( :method ) { is_expected . to eq ( 'static' ) }
357
357
its ( :mtu ) { is_expected . to eq ( '9000' ) }
358
358
its ( :mode ) { is_expected . to eq ( :vlan ) }
@@ -380,7 +380,7 @@ def fixture_data(file)
380
380
instance_double ( 'eth0_provider' ,
381
381
name : 'eth0' ,
382
382
ensure : :present ,
383
- onboot : 'yes' ,
383
+ onboot : true ,
384
384
hotplug : true ,
385
385
family : 'inet' ,
386
386
method : 'none' ,
@@ -395,7 +395,7 @@ def fixture_data(file)
395
395
instance_double ( 'eth0_1_provider' ,
396
396
name : 'eth0.1' ,
397
397
ensure : :present ,
398
- onboot : 'yes' ,
398
+ onboot : true ,
399
399
hotplug : true ,
400
400
family : 'inet' ,
401
401
method : 'none' ,
@@ -424,7 +424,7 @@ def fixture_data(file)
424
424
let ( :lo_provider ) do
425
425
instance_double ( 'lo_provider' ,
426
426
name : 'lo' ,
427
- onboot : 'yes' ,
427
+ onboot : true ,
428
428
hotplug : true ,
429
429
family : 'inet' ,
430
430
method : 'loopback' ,
0 commit comments