mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Update unit test for building simple domain name
Make the unit test match the new requirement that if a _ postfix is desired when default_prefix is defined, then it must be added to the default_prefix.
This commit is contained in:
@@ -14,7 +14,7 @@ describe VagrantPlugins::ProviderLibvirt::Action::SetNameOfDomain do
|
||||
end
|
||||
|
||||
it 'builds simple domain name' do
|
||||
@env.default_prefix = 'pre'
|
||||
@env.default_prefix = 'pre_'
|
||||
dmn = VagrantPlugins::ProviderLibvirt::Action::SetNameOfDomain.new(Object.new, @env)
|
||||
dmn.build_domain_name(@env).should eq('pre_')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user