File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 99 } ,
1010 'with version => 1.7.0' => {
1111 'version' => '1.7.0'
12- } ,
12+ }
1313}
1414
1515describe 'docker::compose' , type : :class do
3333 context title do
3434 params = {
3535 'ensure' => 'present' ,
36- 'version' => defaults [ 'compose_version' ] ,
36+ 'version' => defaults [ 'compose_version' ]
3737 } . merge ( local_params )
3838
3939 let ( :facts ) do
Original file line number Diff line number Diff line change 55 version = _params [ 'version' ]
66
77 if _params [ 'manage_package' ]
8- ensure_value =
8+ ensure_value =
99 if _params [ 'version' ] != :undef && _params [ 'ensure' ] != 'absent'
1010 _params [ 'version' ]
1111 else
1515 case _facts [ 'os' ] [ 'family' ]
1616 when 'Debian' , 'RedHat'
1717 it {
18- is_expected . to contain_package ( 'docker-compose-plugin' ) . with (
18+ expect ( subject ) . to contain_package ( 'docker-compose-plugin' ) . with (
1919 ensure : ensure_value ,
2020 )
2121 }
Original file line number Diff line number Diff line change 2323
2424 it 'has expected properties' do
2525 properties . each do |property |
26- expect ( compose . properties . map ( &:name ) ) . to be_include ( property )
26+ expect ( compose . properties . map ( &:name ) ) . to include ( property )
2727 end
2828 end
2929
3030 it 'has expected parameters' do
3131 params . each do |param |
32- expect ( compose . parameters ) . to be_include ( param )
32+ expect ( compose . parameters ) . to include ( param )
3333 end
3434 end
3535
Original file line number Diff line number Diff line change 2929
3030 it 'has expected properties' do
3131 properties . each do |property |
32- expect ( network . properties . map ( &:name ) ) . to be_include ( property )
32+ expect ( network . properties . map ( &:name ) ) . to include ( property )
3333 end
3434 end
3535
3636 it 'has expected parameters' do
3737 params . each do |param |
38- expect ( network . parameters ) . to be_include ( param )
38+ expect ( network . parameters ) . to include ( param )
3939 end
4040 end
4141end
Original file line number Diff line number Diff line change 2121
2222 it 'has expected properties' do
2323 properties . each do |property |
24- expect ( stack . properties . map ( &:name ) ) . to be_include ( property )
24+ expect ( stack . properties . map ( &:name ) ) . to include ( property )
2525 end
2626 end
2727
2828 it 'has expected parameters' do
2929 params . each do |param |
30- expect ( stack . parameters ) . to be_include ( param )
30+ expect ( stack . parameters ) . to include ( param )
3131 end
3232 end
3333
Original file line number Diff line number Diff line change 2222
2323 it 'has expected properties' do
2424 properties . each do |property |
25- expect ( volume . properties . map ( &:name ) ) . to be_include ( property )
25+ expect ( volume . properties . map ( &:name ) ) . to include ( property )
2626 end
2727 end
2828
2929 it 'has expected parameters' do
3030 params . each do |param |
31- expect ( volume . parameters ) . to be_include ( param )
31+ expect ( volume . parameters ) . to include ( param )
3232 end
3333 end
3434end
You can’t perform that action at this time.
0 commit comments