Skip to content

Commit e39396b

Browse files
committed
Fix Ruby syntax for regex in spec test
1 parent 1dae792 commit e39396b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

manifests/params.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
$virtualbox_build = '112440'
9696
$virtualbox_url = "http://download.virtualbox.org/virtualbox/${virtualbox_version}/VirtualBox-${virtualbox_version}-${virtualbox_build}-OSX.dmg"
9797
$virtualbox_key = undef
98+
$vmware_version = undef
99+
$vmware_urlbase = undef
100+
$vmware_package = undef
98101

99102

100103
# ### webstack ####
@@ -206,6 +209,10 @@
206209
$virtualbox_build = undef
207210
$virtualbox_url = undef
208211
$virtualbox_key = undef
212+
$vmware_version = undef
213+
$vmware_urlbase = undef
214+
$vmware_package = undef
215+
209216
} else {
210217
fail("The ${module_name} module is not supported on ${::operatingsystem} with version ${::operatingsystemrelease}.")
211218
}

spec/classes/software_virtualization_vmware_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
end
99

1010
context 'with defaults' do
11-
if facts[:operatingsystem] =~ /^(Debian|Ubuntu)$/
11+
if facts[:operatingsystem] =~ %r{^(Debian|Ubuntu)$}
1212
it { is_expected.to compile.with_all_deps }
1313
else
14-
it { is_expected.to compile.and_raise_error(/is not supported on /) }
14+
it { is_expected.to compile.and_raise_error(%r{is not supported on }) }
1515
end
1616
end
1717
end

0 commit comments

Comments
 (0)