summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/template_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2014-07-29 15:51:14 -0700
committerdanielsdeleo <dan@getchef.com>2014-07-30 14:07:07 -0700
commitfc3b0eed9b8b33bcb51121deee09314f9eb86622 (patch)
tree8be687de08267fcf996de1d949812808434fa967 /spec/unit/mixin/template_spec.rb
parente2423a426a79196f327feea16ada95f88d2df9fb (diff)
downloadchef-fc3b0eed9b8b33bcb51121deee09314f9eb86622.tar.gz
Move `ohai` helper into platform_helpers, fix perf issue.
The ohai method is more relevant to platform detection in tests, so it is moved into platform_helpers. It is also modified to use the `OHAI_SYSTEM` constant we set in spec_helper. The prior implementation did not correctly memoize the method, which resulted in several hundred invocations of the ohai platform plugin during test loading, which took ~70s on my machine (before any tests ran).
Diffstat (limited to 'spec/unit/mixin/template_spec.rb')
0 files changed, 0 insertions, 0 deletions