diff options
author | danielsdeleo <dan@getchef.com> | 2014-07-29 15:51:14 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-07-30 14:07:07 -0700 |
commit | fc3b0eed9b8b33bcb51121deee09314f9eb86622 (patch) | |
tree | 8be687de08267fcf996de1d949812808434fa967 /spec/unit/exceptions_spec.rb | |
parent | e2423a426a79196f327feea16ada95f88d2df9fb (diff) | |
download | chef-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/exceptions_spec.rb')
0 files changed, 0 insertions, 0 deletions