@@ -18,7 +18,7 @@ class SomethingSomethingDarkside; end
1818 context 'with a file:// prefix' do
1919 let ( :url ) { 'file:///etc/credentials' }
2020
21- it 'will not throw an error' do
21+ it 'does not throw an error' do
2222 allow ( File ) . to receive ( :exist? ) . and_return ( true )
2323 allow ( Hocon ) . to receive ( :load ) . and_call_original
2424 expect ( Puppet ::ResourceApi ::Transport ) . to receive ( :connect )
@@ -38,7 +38,7 @@ class SomethingSomethingDarkside; end
3838 context 'when called with a config hash' do
3939 let ( :config ) { { } }
4040
41- it 'will use the configuration directly' do
41+ it 'uses the configuration directly' do
4242 allow ( Hocon ) . to receive ( :load ) . and_call_original
4343 expect ( Hocon ) . not_to receive ( :load ) . with ( '/etc/credentials' , any_args )
4444 expect ( Puppet ::ResourceApi ::Transport ) . to receive ( :connect )
@@ -50,7 +50,7 @@ class SomethingSomethingDarkside; end
5050 let ( :transport ) { Puppet ::Transport ::SomethingSomethingDarkside . new }
5151 let ( :instance ) { described_class . new ( 'something_something_darkside' , transport ) }
5252
53- it 'will set the @transport class variable' do
53+ it 'sets the @transport class variable' do
5454 expect ( instance . instance_variable_get ( :@transport ) ) . to eq ( transport )
5555 end
5656 end
@@ -63,7 +63,7 @@ class SomethingSomethingDarkside; end
6363 let ( :facts ) { { 'foo' => 'bar' } }
6464 let ( :transport ) { instance_double ( Puppet ::Transport ::TestDevice , 'transport' ) }
6565
66- it 'will return the facts provided by the transport' do
66+ it 'returns the facts provided by the transport' do
6767 allow ( Puppet ::ResourceApi ::Transport ) . to receive ( :connect ) . and_return ( transport )
6868 allow ( Puppet ::ResourceApi ::Transport ) . to receive ( :list ) . and_return ( schema : :dummy )
6969 allow ( Puppet ::ResourceApi ::PuppetContext ) . to receive ( :new ) . and_return ( context )
@@ -80,7 +80,7 @@ class SomethingSomethingDarkside; end
8080 let ( :transport ) { instance_double ( Puppet ::Transport ::TestDevice , 'transport' ) }
8181 let ( :context ) { instance_double ( Puppet ::ResourceApi ::PuppetContext , 'context' ) }
8282
83- it 'will return the facts provided by the transport' do
83+ it 'returns the facts provided by the transport' do
8484 allow ( Puppet ::ResourceApi ::Transport ) . to receive ( :connect ) . and_return ( transport )
8585 expect ( transport ) . to receive ( :close )
8686
@@ -92,7 +92,7 @@ class SomethingSomethingDarkside; end
9292 let ( :instance ) { described_class . new ( 'wibble' , { } ) }
9393 let ( :transport ) { instance_double ( Puppet ::Transport ::TestDevice , 'transport' ) }
9494
95- it 'will raise a NoMethodError' do
95+ it 'raises a NoMethodError' do
9696 allow ( Puppet ::ResourceApi ::Transport ) . to receive ( :connect ) . and_return ( transport )
9797 expect { instance . wibble } . to raise_error NoMethodError
9898 end
@@ -109,13 +109,13 @@ class SomethingSomethingDarkside; end
109109
110110 context 'when the transport does not support the function' do
111111 context 'when using respond_to?' do
112- it 'will return false' do
112+ it 'returns false' do
113113 expect ( instance . respond_to? ( :wibble ) ) . to eq ( false )
114114 end
115115 end
116116
117117 context 'when using method?' do
118- it 'will return false' do
118+ it 'returns false' do
119119 expect { instance . method :wibble } . to raise_error NameError , /undefined method `wibble'/
120120 end
121121 end
@@ -127,13 +127,13 @@ class SomethingSomethingDarkside; end
127127 end
128128
129129 context 'when using respond_to?' do
130- it 'will return true' do
130+ it 'returns true' do
131131 expect ( instance . respond_to? ( :close ) ) . to eq ( true )
132132 end
133133 end
134134
135135 context 'when using method?' do
136- it 'will return the method' do
136+ it 'returns the method' do
137137 expect ( instance . method ( :close ) ) . to be_a ( Method )
138138 end
139139 end
0 commit comments