spec/beaker/hypervisor/docker_spec.rb in beaker-2.34.0 vs spec/beaker/hypervisor/docker_spec.rb in beaker-2.35.0
- old
+ new
@@ -218,19 +218,29 @@
'mount3' => {
'host_path' => '/different_folder',
'container_path' => '/different_mount',
'opts' => 'rw',
},
+ 'mount4' => {
+ 'host_path' => './',
+ 'container_path' => '/relative_mount',
+ },
+ 'mount5' => {
+ 'host_path' => 'local_folder',
+ 'container_path' => '/another_relative_mount',
+ }
}
expect( ::Docker::Container ).to receive(:create).with({
'Image' => image.id,
'Hostname' => host.name,
'HostConfig' => {
'Binds' => [
'/source_folder:/mount_point',
'/another_folder:/another_mount:ro',
'/different_folder:/different_mount:rw',
+ "#{File.expand_path('./')}:/relative_mount",
+ "#{File.expand_path('local_folder')}:/another_relative_mount",
]
}
})
end