providers/docker: Ensure long flags are used
This commit is contained in:
parent
3ab5064e02
commit
7538d07233
|
@ -31,7 +31,7 @@ describe VagrantPlugins::DockerProvider::Driver do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'sets container name' do
|
it 'sets container name' do
|
||||||
expect(cmd_executed).to match(/-name #{Regexp.escape params[:name]}/)
|
expect(cmd_executed).to match(/--name #{Regexp.escape params[:name]}/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'forwards ports' do
|
it 'forwards ports' do
|
||||||
|
@ -51,7 +51,7 @@ describe VagrantPlugins::DockerProvider::Driver do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is able to run a privileged container' do
|
it 'is able to run a privileged container' do
|
||||||
expect(cmd_executed).to match(/-privileged .+ #{Regexp.escape params[:image]}/)
|
expect(cmd_executed).to match(/--privileged .+ #{Regexp.escape params[:image]}/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'sets the hostname if specified' do
|
it 'sets the hostname if specified' do
|
||||||
|
|
Loading…
Reference in New Issue