mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Update providers_spec to match array contents
This commit updates providers_spec so the test ensures array content of the providers match. Without this change the provider_spec test will fail when comparing providers if the order is not exactly the same in each array.
This commit is contained in:
parent
9a57c6d1b5
commit
60b8715a80
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ describe 'providers' do
|
||||||
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'dummy.rb'),
|
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'dummy.rb'),
|
||||||
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'vsphere.rb')
|
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'vsphere.rb')
|
||||||
]
|
]
|
||||||
expect(Vmpooler::Providers.load_all_providers).to eq(p)
|
expect(Vmpooler::Providers.load_all_providers).to match_array(p)
|
||||||
end
|
end
|
||||||
|
|
||||||
it '#installed_providers' do
|
it '#installed_providers' do
|
||||||
|
|
@ -43,7 +43,7 @@ describe 'providers' do
|
||||||
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'dummy.rb'),
|
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'dummy.rb'),
|
||||||
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'vsphere.rb')
|
File.join(project_root_dir, 'lib', 'vmpooler', 'providers', 'vsphere.rb')
|
||||||
]
|
]
|
||||||
expect(providers.load_from_gems).to eq(p)
|
expect(providers.load_from_gems).to match_array(p)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue