Skip to content

Commit c842cb2

Browse files
authored
directly use facts object, rather than the name from facterdb
thanks to @bastelfreak for pointing this out
1 parent ed516f6 commit c842cb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/defines/global_config_entry_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
end
1313

1414
let(:npm_path) do
15-
if os =~ /freebsd/i
15+
if facts[:os]['family'] == 'FreeBSD'
1616
'/usr/local/bin/npm'
1717
else
1818
'/usr/bin/npm'

spec/defines/nodejs_npm_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
end
1313

1414
let(:npm_path) do
15-
if os =~ /freebsd/i
15+
if facts[:os]['family'] == 'FreeBSD'
1616
'/usr/local/bin/npm'
1717
else
1818
'/usr/bin/npm'

0 commit comments

Comments
 (0)